mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
20 lines
367 B
Rust
20 lines
367 B
Rust
#[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 => {}
|
|
}
|
|
}
|