regression test for #82866
This commit is contained in:
parent
8f36334ca9
commit
c7c80577c2
2 changed files with 23 additions and 0 deletions
7
src/test/ui/match/issue-82866.rs
Normal file
7
src/test/ui/match/issue-82866.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
fn main() {
|
||||||
|
match x {
|
||||||
|
//~^ ERROR cannot find value `x` in this scope
|
||||||
|
Some::<v>(v) => (),
|
||||||
|
//~^ ERROR cannot find type `v` in this scope
|
||||||
|
}
|
||||||
|
}
|
16
src/test/ui/match/issue-82866.stderr
Normal file
16
src/test/ui/match/issue-82866.stderr
Normal file
|
@ -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
|
||||||
|
--> $DIR/issue-82866.rs:4:16
|
||||||
|
|
|
||||||
|
LL | Some::<v>(v) => (),
|
||||||
|
| ^ not found in this scope
|
||||||
|
|
||||||
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
Some errors have detailed explanations: E0412, E0425.
|
||||||
|
For more information about an error, try `rustc --explain E0412`.
|
Loading…
Add table
Add a link
Reference in a new issue