blob: 9cc760e9a10d73b0a02ef4ba3001c4a4cb3fefcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#[derive(PartialEq, Eq)]
pub struct Tag(pub Context, pub u16);
#[derive(PartialEq, Eq)]
pub enum Context {
Tiff,
Exif,
}
impl Tag {
const ExifIFDPointer: Tag = Tag(Context::Tiff, 34665);
}
fn main() {
match Tag::ExifIFDPointer {
//~^ ERROR: non-exhaustive patterns: `Tag(Context::Exif, _)` not covered
Tag::ExifIFDPointer => {}
}
}
|