mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
fix: Fix path qualifiers not resolving generic type params when shadowed by trait
This commit is contained in:
parent
4e6390bb12
commit
7959c24876
3 changed files with 28 additions and 18 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue