diff options
Diffstat (limited to 'tests/ui/match/issue-82866.rs')
-rw-r--r-- | tests/ui/match/issue-82866.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/match/issue-82866.rs b/tests/ui/match/issue-82866.rs new file mode 100644 index 000000000..95cd62261 --- /dev/null +++ b/tests/ui/match/issue-82866.rs @@ -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 + } +} |