Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tests.rs')
-rw-r--r--crates/ide/src/syntax_highlighting/tests.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs
index ab69578ed9..c0a923afbe 100644
--- a/crates/ide/src/syntax_highlighting/tests.rs
+++ b/crates/ide/src/syntax_highlighting/tests.rs
@@ -1584,3 +1584,16 @@ static STATIC: () = ();
false,
);
}
+
+#[test]
+fn async_fn_non_mut_param() {
+ check_highlighting(
+ r#"
+async fn get_double_async(num: u32) -> u32 {
+ num
+}
+ "#,
+ expect_file!["./test_data/async_fn_non_mut_param.html"],
+ false,
+ );
+}