Skip to content

Commit 870ab12

Browse files
authored
Rollup merge of #95752 - compiler-errors:issue-82866, r=Dylan-DPC
Regression test for #82866 Saw that this issue was open when i was cleaning my old branch for #92237. I am also not opposed to not adding an extra test and just closing #82866. Fixes #82866
2 parents 648d644 + c7c8057 commit 870ab12

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)