diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2021-10-04 13:58:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-04 13:58:13 -0700 |
| commit | 08dd4148f1cdc0ba7fd6729def893bb08e0cd84d (patch) | |
| tree | 88759e11037a6d743051b6d6af829898e6d38f5c /compiler | |
| parent | b115a16956aa100484e5f144c2a5c72ce4dd4456 (diff) | |
| parent | d92c68393323359d30a8ee2478b314853a39ba34 (diff) | |
| download | rust-08dd4148f1cdc0ba7fd6729def893bb08e0cd84d.tar.gz rust-08dd4148f1cdc0ba7fd6729def893bb08e0cd84d.zip | |
Rollup merge of #89447 - FabianWolff:issue-89388, r=davidtwco
Improve error message for missing angle brackets in `[_]::method` Fixes #89388.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index c27ab810a4c..e2424e7d7ad 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -1211,6 +1211,8 @@ impl Expr { } } + ExprKind::Underscore => TyKind::Infer, + // This expression doesn't look like a type syntactically. _ => return None, }; |
