We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd925cc + d92c683 commit 9d081ceCopy full SHA for 9d081ce
compiler/rustc_ast/src/ast.rs
@@ -1211,6 +1211,8 @@ impl Expr {
1211
}
1212
1213
1214
+ ExprKind::Underscore => TyKind::Infer,
1215
+
1216
// This expression doesn't look like a type syntactically.
1217
_ => return None,
1218
};
src/test/ui/parser/issue-89388.rs
@@ -0,0 +1,7 @@
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
+}
src/test/ui/parser/issue-89388.stderr
@@ -0,0 +1,8 @@
+error: missing angle brackets in associated item path
+ --> $DIR/issue-89388.rs:5:24
+ |
+LL | let _ = option.map([_]::to_vec);
+ | ^^^^^^^^^^^ help: try: `<[_]>::to_vec`
+error: aborting due to previous error
8
0 commit comments