]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/issue-50900.stderr
Rollup merge of #91133 - terrarier2111:unsafe-diagnostic, r=jackh726
[rust.git] / src / test / ui / pattern / usefulness / issue-50900.stderr
1 error[E0004]: non-exhaustive patterns: `Tag(Exif, _)` not covered
2   --> $DIR/issue-50900.rs:15:11
3    |
4 LL |     match Tag::ExifIFDPointer {
5    |           ^^^^^^^^^^^^^^^^^^^ pattern `Tag(Exif, _)` not covered
6    |
7 note: `Tag` defined here
8   --> $DIR/issue-50900.rs:2:12
9    |
10 LL | pub struct Tag(pub Context, pub u16);
11    |            ^^^
12    = note: the matched value is of type `Tag`
13 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
14    |
15 LL ~         Tag::ExifIFDPointer => {}
16 LL +         Tag(Exif, _) => todo!()
17    |
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0004`.