diff options
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tests.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting/tests.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs index dd43f9dd9..5ea712cf5 100644 --- a/crates/ide/src/syntax_highlighting/tests.rs +++ b/crates/ide/src/syntax_highlighting/tests.rs | |||
@@ -89,6 +89,12 @@ fn baz<F: Fn() -> ()>(f: F) { | |||
89 | f() | 89 | f() |
90 | } | 90 | } |
91 | 91 | ||
92 | fn foobar() -> impl Copy {} | ||
93 | |||
94 | fn foo() { | ||
95 | let bar = foobar(); | ||
96 | } | ||
97 | |||
92 | macro_rules! def_fn { | 98 | macro_rules! def_fn { |
93 | ($($tt:tt)*) => {$($tt)*} | 99 | ($($tt:tt)*) => {$($tt)*} |
94 | } | 100 | } |