We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f36334 commit c7c8057Copy full SHA for c7c8057
src/test/ui/match/issue-82866.rs
@@ -0,0 +1,7 @@
1
+fn main() {
2
+ match x {
3
+ //~^ ERROR cannot find value `x` in this scope
4
+ Some::<v>(v) => (),
5
+ //~^ ERROR cannot find type `v` in this scope
6
+ }
7
+}
src/test/ui/match/issue-82866.stderr
@@ -0,0 +1,16 @@
+error[E0425]: cannot find value `x` in this scope
+ --> $DIR/issue-82866.rs:2:11
+ |
+LL | match x {
+ | ^ not found in this scope
+
+error[E0412]: cannot find type `v` in this scope
8
+ --> $DIR/issue-82866.rs:4:16
9
10
+LL | Some::<v>(v) => (),
11
12
13
+error: aborting due to 2 previous errors
14
15
+Some errors have detailed explanations: E0412, E0425.
16
+For more information about an error, try `rustc --explain E0412`.
0 commit comments