1 error[E0425]: cannot find value `y` in this scope
2 --> $DIR/error-festival.rs:24:5
7 error[E0603]: constant `FOO` is private
8 --> $DIR/error-festival.rs:32:5
13 error[E0368]: binary assignment operation `+=` cannot be applied to type `&str`
14 --> $DIR/error-festival.rs:22:5
19 | cannot use `+=` on type `&str`
21 error[E0599]: no method named `z` found for type `&str` in the current scope
22 --> $DIR/error-festival.rs:26:7
27 error[E0600]: cannot apply unary operator `!` to type `Question`
28 --> $DIR/error-festival.rs:29:5
33 error[E0604]: only `u8` can be cast as `char`, not `u32`
34 --> $DIR/error-festival.rs:35:5
39 error[E0605]: non-primitive cast: `u8` as `std::vec::Vec<u8>`
40 --> $DIR/error-festival.rs:39:5
45 = note: an `as` expression can only be used to convert between primitive types. Consider using the `From` trait
47 error[E0054]: cannot cast as `bool`
48 --> $DIR/error-festival.rs:43:24
50 LL | let x_is_nonzero = x as bool;
51 | ^^^^^^^^^ unsupported cast
53 = help: compare with zero instead
55 error[E0606]: casting `&u8` as `u32` is invalid
56 --> $DIR/error-festival.rs:47:18
58 LL | let y: u32 = x as u32;
59 | ^^^^^^^^ cannot cast `&u8` as `u32`
61 help: did you mean `*x`?
62 --> $DIR/error-festival.rs:47:18
64 LL | let y: u32 = x as u32;
67 error[E0607]: cannot cast thin pointer `*const u8` to fat pointer `*const [u8]`
68 --> $DIR/error-festival.rs:51:5
70 LL | v as *const [u8];
73 error: aborting due to 10 previous errors
75 Some errors occurred: E0054, E0368, E0425, E0599, E0600, E0603, E0604, E0605, E0606...
76 For more information about an error, try `rustc --explain E0054`.