mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 01:10:02 -04:00
tests/indent: improve Rust tests
This commit is contained in:
parent
69dda8c09d
commit
1d7e5144ab
16 changed files with 217 additions and 13 deletions
21
lua/tests/indent/rust/where.rs
Normal file
21
lua/tests/indent/rust/where.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
fn foo<T>(t: T) -> i32
|
||||
where
|
||||
T: Debug,
|
||||
{
|
||||
1
|
||||
}
|
||||
|
||||
fn foo<T>(t: T) -> i32 where
|
||||
T: Debug,
|
||||
{
|
||||
1
|
||||
}
|
||||
|
||||
struct Foo<T>(T);
|
||||
|
||||
impl<T> Write for Foo<T>
|
||||
where
|
||||
T: Debug,
|
||||
{
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue