1 error[E0425]: cannot find value `y` in this scope
2 --> $DIR/error-festival.rs:14:5
5 | ^ help: a local variable with a similar name exists: `x`
7 error[E0603]: constant `FOO` is private
8 --> $DIR/error-festival.rs:22:10
11 | ^^^ private constant
13 note: the constant `FOO` is defined here
14 --> $DIR/error-festival.rs:7:5
16 LL | const FOO: u32 = 0;
19 error[E0368]: binary assignment operation `+=` cannot be applied to type `&str`
20 --> $DIR/error-festival.rs:12:5
25 | cannot use `+=` on type `&str`
27 error[E0599]: no method named `z` found for reference `&str` in the current scope
28 --> $DIR/error-festival.rs:16:7
31 | ^ method not found in `&str`
33 error[E0600]: cannot apply unary operator `!` to type `Question`
34 --> $DIR/error-festival.rs:19:5
37 | ^^^^^^^^^^^^^^ cannot apply unary operator `!`
39 = note: an implementation of `std::ops::Not` might be missing for `Question`
41 error[E0604]: only `u8` can be cast as `char`, not `u32`
42 --> $DIR/error-festival.rs:25:5
45 | ^^^^^^^^^^^^ invalid cast
47 error[E0605]: non-primitive cast: `u8` as `Vec<u8>`
48 --> $DIR/error-festival.rs:29:5
51 | ^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
53 error[E0054]: cannot cast as `bool`
54 --> $DIR/error-festival.rs:33:24
56 LL | let x_is_nonzero = x as bool;
57 | ^^^^^^^^^ help: compare with zero instead: `x != 0`
59 error[E0606]: casting `&u8` as `u32` is invalid
60 --> $DIR/error-festival.rs:37:18
62 LL | let y: u32 = x as u32;
65 | cannot cast `&u8` as `u32`
66 | help: dereference the expression: `*x`
68 error[E0607]: cannot cast thin pointer `*const u8` to fat pointer `*const [u8]`
69 --> $DIR/error-festival.rs:41:5
71 LL | v as *const [u8];
74 error: aborting due to 10 previous errors
76 Some errors have detailed explanations: E0054, E0368, E0425, E0599, E0600, E0603, E0604, E0605, E0606...
77 For more information about an error, try `rustc --explain E0054`.