File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1211,6 +1211,8 @@ impl Expr {
12111211 }
12121212 }
12131213
1214+ ExprKind :: Underscore => TyKind :: Infer ,
1215+
12141216 // This expression doesn't look like a type syntactically.
12151217 _ => return None ,
12161218 } ;
Original file line number Diff line number Diff line change 1+ // Regression test for #89388.
2+
3+ fn main ( ) {
4+ let option: Option < & [ u8 ] > = Some ( b"..." ) ;
5+ let _ = option. map ( [ _] :: to_vec) ;
6+ //~^ ERROR: missing angle brackets in associated item path
7+ }
Original file line number Diff line number Diff line change 1+ error: missing angle brackets in associated item path
2+ --> $DIR/issue-89388.rs:5:24
3+ |
4+ LL | let _ = option.map([_]::to_vec);
5+ | ^^^^^^^^^^^ help: try: `<[_]>::to_vec`
6+
7+ error: aborting due to previous error
8+
You can’t perform that action at this time.
0 commit comments