1 error[E0004]: non-exhaustive patterns: type `u8` is non-empty
2 --> $DIR/pattern-matching-should-fail.rs:67:23
4 LL | let c1 = || match x { };
7 = note: the matched value is of type `u8`
8 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
10 LL ~ let c1 = || match x {
15 error[E0381]: used binding `x` isn't initialized
16 --> $DIR/pattern-matching-should-fail.rs:8:23
19 | - binding declared here but left uninitialized
20 LL | let c1 = || match x { };
21 | ^ `x` used here but it isn't initialized
23 error[E0381]: used binding `x` isn't initialized
24 --> $DIR/pattern-matching-should-fail.rs:15:14
27 | - binding declared here but left uninitialized
28 LL | let c2 = || match x { _ => () };
29 | ^^ - borrow occurs due to use in closure
31 | `x` used here but it isn't initialized
33 error[E0381]: used binding `variant` isn't initialized
34 --> $DIR/pattern-matching-should-fail.rs:27:13
37 | ------- binding declared here but left uninitialized
39 | ^^ `variant` used here but it isn't initialized
42 | ------- borrow occurs due to use in closure
44 error[E0381]: used binding `variant` isn't initialized
45 --> $DIR/pattern-matching-should-fail.rs:39:13
48 | ------- binding declared here but left uninitialized
50 | ^^ `variant` used here but it isn't initialized
52 | ------- borrow occurs due to use in closure
54 error[E0381]: used binding `g` isn't initialized
55 --> $DIR/pattern-matching-should-fail.rs:54:15
58 | - binding declared here but left uninitialized
61 | ^ `g` used here but it isn't initialized
63 error[E0381]: used binding `t` isn't initialized
64 --> $DIR/pattern-matching-should-fail.rs:56:19
67 | - binding declared here but left uninitialized
70 | ^ `t` used here but it isn't initialized
72 error[E0381]: used binding `x` isn't initialized
73 --> $DIR/pattern-matching-should-fail.rs:67:23
76 | - binding declared here but left uninitialized
77 LL | let c1 = || match x { };
78 | ^ `x` used here but it isn't initialized
80 help: consider assigning a value
85 error: aborting due to 8 previous errors
87 Some errors have detailed explanations: E0004, E0381.
88 For more information about an error, try `rustc --explain E0004`.