]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/pattern/usefulness/issue-50900.stderr
When finding a match expr with a single arm that requires more, suggest it
[rust.git] / src / test / ui / pattern / usefulness / issue-50900.stderr
index d378b6e8efe370a84ac92491ae3ceb4853ad9b55..8612607fa8bb031f31db8f45ede0b3d02f2fcaa3 100644 (file)
@@ -7,8 +7,12 @@ LL | pub struct Tag(pub Context, pub u16);
 LL |     match Tag::ExifIFDPointer {
    |           ^^^^^^^^^^^^^^^^^^^ pattern `Tag(Exif, _)` not covered
    |
-   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
    = note: the matched value is of type `Tag`
+help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
+   |
+LL ~         Tag::ExifIFDPointer => {}
+LL +         Tag(Exif, _) => todo!()
+   |
 
 error: aborting due to previous error