]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-63983.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-63983.rs
1 enum MyEnum {
2     Tuple(i32),
3     Struct{ s: i32 },
4 }
5
6 fn foo(en: MyEnum) {
7     match en {
8         MyEnum::Tuple => "",
9 //~^ ERROR expected unit struct, unit variant or constant, found tuple variant `MyEnum::Tuple`
10         MyEnum::Struct => "",
11 //~^ ERROR expected unit struct, unit variant or constant, found struct variant `MyEnum::Struct`
12     };
13 }
14
15 fn main() {}