Skip to content

Commit c7c8057

Browse files
regression test for #82866
1 parent 8f36334 commit c7c8057

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/test/ui/match/issue-82866.rs

+7
Original file line numberDiff line numberDiff line change
@@ -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

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
error[E0425]: cannot find value `x` in this scope
2+
--> $DIR/issue-82866.rs:2:11
3+
|
4+
LL | match x {
5+
| ^ not found in this scope
6+
7+
error[E0412]: cannot find type `v` in this scope
8+
--> $DIR/issue-82866.rs:4:16
9+
|
10+
LL | Some::<v>(v) => (),
11+
| ^ not found in this scope
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

Comments
 (0)