Skip to content

Commit

Permalink
Rollup merge of rust-lang#95752 - compiler-errors:issue-82866, r=Dyla…
Browse files Browse the repository at this point in the history
…n-DPC

Regression test for rust-lang#82866

Saw that this issue was open when i was cleaning my old branch for rust-lang#92237.
I am also not opposed to not adding an extra test and just closing rust-lang#82866.

Fixes rust-lang#82866
  • Loading branch information
Dylan-DPC authored Apr 7, 2022
2 parents 648d644 + c7c8057 commit 870ab12
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/ui/match/issue-82866.rs
Original file line number Diff line number Diff line change
@@ -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 changes: 16 additions & 0 deletions src/test/ui/match/issue-82866.stderr
Original file line number Diff line number Diff line change
@@ -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`.

0 comments on commit 870ab12

Please sign in to comment.