]> git.lizzy.rs Git - rust.git/blob - tests/ui/bogus-tag.rs
Rollup merge of #107740 - oli-obk:lock_tcx, r=petrochenkov
[rust.git] / tests / ui / bogus-tag.rs
1 enum Color { Rgb(isize, isize, isize), Rgba(isize, isize, isize, isize), }
2
3 fn main() {
4     let red: Color = Color::Rgb(255, 0, 0);
5     match red {
6         Color::Rgb(r, g, b) => { println!("rgb"); }
7         Color::Hsl(h, s, l) => { println!("hsl"); }
8         //~^ ERROR no variant
9     }
10 }