]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/match-tag-unary.rs
Rollup merge of #107074 - lcnr:validate-dont-skip-opaque, r=compiler-errors
[rust.git] / tests / ui / match / match-tag-unary.rs
1 enum A { A(isize) }
2 enum B { B(isize) }
3
4 fn main() { let x: A = A::A(0); match x { B::B(y) => { } } } //~ ERROR mismatched types