]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/issue-50900.rs
Add test for eval order for a+=b
[rust.git] / src / test / ui / match / issue-50900.rs
1 #[derive(PartialEq, Eq)]
2 pub struct Tag(pub Context, pub u16);
3
4 #[derive(PartialEq, Eq)]
5 pub enum Context {
6     Tiff,
7     Exif,
8 }
9
10 impl Tag {
11     const ExifIFDPointer: Tag = Tag(Context::Tiff, 34665);
12 }
13
14 fn main() {
15     match Tag::ExifIFDPointer {
16     //~^ ERROR: non-exhaustive patterns: `Tag(Exif, _)` not covered
17         Tag::ExifIFDPointer => {}
18     }
19 }