Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/highlight_related.rs')
| -rw-r--r-- | crates/ide/src/highlight_related.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/crates/ide/src/highlight_related.rs b/crates/ide/src/highlight_related.rs index 12ce457ea6..9fc89e90f2 100644 --- a/crates/ide/src/highlight_related.rs +++ b/crates/ide/src/highlight_related.rs @@ -2549,4 +2549,26 @@ fn main() { "#, ); } + + #[test] + fn async_fn_param() { + check( + r#" +async fn get_double_async(num$0: u32) -> u32 { + // ^^^ + num + // ^^^ read +} + "#, + ); + check( + r#" +async fn get_double_async((num$0,): (u32,)) -> u32 { + // ^^^ + num + // ^^^ read +} + "#, + ); + } } |