1 error[E0004]: non-exhaustive patterns: type `u8` is non-empty
2 --> $DIR/pattern-matching-should-fail.rs:70:23
4 LL | let c1 = || match x { };
7 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8 = note: the matched value is of type `u8`
10 error[E0381]: use of possibly-uninitialized variable: `x`
11 --> $DIR/pattern-matching-should-fail.rs:8:23
13 LL | let c1 = || match x { };
14 | ^ use of possibly-uninitialized `x`
16 error[E0381]: borrow of possibly-uninitialized variable: `x`
17 --> $DIR/pattern-matching-should-fail.rs:15:14
19 LL | let c2 = || match x { _ => () };
20 | ^^ - borrow occurs due to use in closure
22 | use of possibly-uninitialized `x`
24 error[E0381]: borrow of possibly-uninitialized variable: `variant`
25 --> $DIR/pattern-matching-should-fail.rs:27:13
28 | ^^ use of possibly-uninitialized `variant`
31 | ------- borrow occurs due to use in closure
33 error[E0381]: borrow of possibly-uninitialized variable: `variant`
34 --> $DIR/pattern-matching-should-fail.rs:39:13
37 | ^^ use of possibly-uninitialized `variant`
40 | ------- borrow occurs due to use in closure
42 error[E0381]: use of possibly-uninitialized variable: `g`
43 --> $DIR/pattern-matching-should-fail.rs:55:15
46 | ^ use of possibly-uninitialized `g`
48 error[E0381]: use of possibly-uninitialized variable: `t`
49 --> $DIR/pattern-matching-should-fail.rs:58:19
52 | ^ use of possibly-uninitialized `t`
54 error[E0381]: use of possibly-uninitialized variable: `x`
55 --> $DIR/pattern-matching-should-fail.rs:70:23
57 LL | let c1 = || match x { };
58 | ^ use of possibly-uninitialized `x`
60 error: aborting due to 8 previous errors
62 Some errors have detailed explanations: E0004, E0381.
63 For more information about an error, try `rustc --explain E0004`.