]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-7867.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-7867.rs
1 enum A { B, C }
2
3 mod foo { pub fn bar() {} }
4
5 fn main() {
6     match (true, false) {
7         A::B => (),
8         //~^ ERROR mismatched types
9         //~| expected tuple, found enum `A`
10         //~| expected tuple `(bool, bool)`
11         //~| found enum `A`
12         _ => ()
13     }
14 }