mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Get the right analyzer for impls
This commit is contained in:
parent
7d2080a031
commit
f4f8b81474
4 changed files with 23 additions and 2 deletions
|
@ -255,6 +255,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
|
|||
.parameter { color: #94BFF3; }
|
||||
.builtin { color: #DD6718; }
|
||||
.text { color: #DCDCCC; }
|
||||
.type { color: #7CB8BB; }
|
||||
.attribute { color: #94BFF3; }
|
||||
.literal { color: #BFEBBF; }
|
||||
.macro { color: #94BFF3; }
|
||||
|
@ -303,6 +304,14 @@ fn main() {
|
|||
|
||||
y;
|
||||
}
|
||||
|
||||
enum E<X> {
|
||||
V(X)
|
||||
}
|
||||
|
||||
impl<X> E<X> {
|
||||
fn new<T>() -> E<T> {}
|
||||
}
|
||||
"#
|
||||
.trim(),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue