]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/issue-3601.stderr
Auto merge of #94515 - estebank:tweak-move-error, r=davidtwco
[rust.git] / src / test / ui / pattern / usefulness / issue-3601.stderr
1 error[E0004]: non-exhaustive patterns: `box _` not covered
2   --> $DIR/issue-3601.rs:30:44
3    |
4 LL |         box NodeKind::Element(ed) => match ed.kind {
5    |                                            ^^^^^^^ pattern `box _` not covered
6    |
7 note: `Box<ElementKind>` defined here
8   --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
9    |
10 LL | / pub struct Box<
11 LL | |     T: ?Sized,
12 LL | |     #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
13 LL | | >(Unique<T>, A);
14    | |________________^
15    = note: the matched value is of type `Box<ElementKind>`
16 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
17    |
18 LL ~             box ElementKind::HTMLImageElement(ref d) if d.image.is_some() => { true }
19 LL +             box _ => todo!()
20    |
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0004`.