fix: Fix path qualifiers not resolving generic type params when shadowed by trait

This commit is contained in:
Lukas Wirth 2022-04-06 19:38:45 +02:00
parent 4e6390bb12
commit 7959c24876
3 changed files with 28 additions and 18 deletions

View file

@ -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,