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.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs
index fdfe347a32..d768669594 100644
--- a/crates/ide/src/syntax_highlighting/tests.rs
+++ b/crates/ide/src/syntax_highlighting/tests.rs
@@ -31,6 +31,7 @@ struct Foo;
false,
);
}
+
#[test]
fn macros() {
check_highlighting(
@@ -278,6 +279,10 @@ where
T: Baz,
<T as Baz>::Qux: Bar {}
+fn gp_shadows_trait<Baz: Bar>() {
+ Baz::bar;
+}
+
//- /foo.rs crate:foo
pub struct Person {
pub name: &'static str,