File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -2807,6 +2807,10 @@ impl Type {
2807
2807
let subst = TyBuilder :: subst_for_def ( db, id, None ) . fill_with_unknown ( ) . build ( ) ;
2808
2808
Some ( subst)
2809
2809
}
2810
+ ItemContainerId :: ImplId ( id) => {
2811
+ let subst = TyBuilder :: subst_for_def ( db, id, None ) . fill_with_unknown ( ) . build ( ) ;
2812
+ Some ( subst)
2813
+ }
2810
2814
_ => None ,
2811
2815
} ,
2812
2816
_ => None ,
Original file line number Diff line number Diff line change @@ -1373,6 +1373,22 @@ fn main() {
1373
1373
().func$0();
1374
1374
//^^^^
1375
1375
}
1376
+ "# ,
1377
+ ) ;
1378
+ }
1379
+
1380
+ #[ test]
1381
+ fn test_assoc_type_highlighting ( ) {
1382
+ check (
1383
+ r#"
1384
+ trait Trait {
1385
+ type Output;
1386
+ // ^^^^^^
1387
+ }
1388
+ impl Trait for () {
1389
+ type Output$0 = ();
1390
+ // ^^^^^^
1391
+ }
1376
1392
"# ,
1377
1393
) ;
1378
1394
}
You can’t perform that action at this time.
0 commit comments