]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-pr29383.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / issues / issue-pr29383.rs
1 enum E {
2     A,
3     B,
4 }
5
6 fn main() {
7     match None {
8         None => {}
9         Some(E::A(..)) => {}
10         //~^ ERROR expected tuple struct or tuple variant, found unit variant `E::A`
11         Some(E::B(..)) => {}
12         //~^ ERROR expected tuple struct or tuple variant, found unit variant `E::B`
13     }
14 }