]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-enum-variants/incorrect-variant-form-through-Self-issue-58006.rs
Rollup merge of #107306 - compiler-errors:correct-sugg-for-closure-arg-needs-borrow...
[rust.git] / tests / ui / type-alias-enum-variants / incorrect-variant-form-through-Self-issue-58006.rs
1 pub enum Enum {
2     A(usize),
3 }
4
5 impl Enum {
6     fn foo(&self) -> () {
7         match self {
8             Self::A => (),
9             //~^ ERROR expected unit struct, unit variant or constant, found tuple variant
10         }
11     }
12 }
13
14 fn main() {}