11error[E0425]: cannot find value `y` in this scope
2- --> $DIR/error-festival.rs:14 :5
2+ --> $DIR/error-festival.rs:16 :5
33 |
44LL | y = 2;
55 | ^
@@ -15,47 +15,47 @@ LL | let y = 2;
1515 | +++
1616
1717error[E0603]: constant `FOO` is private
18- --> $DIR/error-festival.rs:22 :10
18+ --> $DIR/error-festival.rs:24 :10
1919 |
2020LL | foo::FOO;
2121 | ^^^ private constant
2222 |
2323note: the constant `FOO` is defined here
24- --> $DIR/error-festival.rs:7 :5
24+ --> $DIR/error-festival.rs:9 :5
2525 |
2626LL | const FOO: u32 = 0;
2727 | ^^^^^^^^^^^^^^^^^^^
2828
2929error[E0368]: binary assignment operation `+=` cannot be applied to type `&str`
30- --> $DIR/error-festival.rs:12 :5
30+ --> $DIR/error-festival.rs:14 :5
3131 |
3232LL | x += 2;
3333 | -^^^^^
3434 | |
3535 | cannot use `+=` on type `&str`
3636
3737error[E0599]: no method named `z` found for reference `&str` in the current scope
38- --> $DIR/error-festival.rs:16 :7
38+ --> $DIR/error-festival.rs:18 :7
3939 |
4040LL | x.z();
4141 | ^ method not found in `&str`
4242
4343error[E0600]: cannot apply unary operator `!` to type `Question`
44- --> $DIR/error-festival.rs:19 :5
44+ --> $DIR/error-festival.rs:21 :5
4545 |
4646LL | !Question::Yes;
4747 | ^^^^^^^^^^^^^^ cannot apply unary operator `!`
4848 |
4949note: an implementation of `Not` might be missing for `Question`
50- --> $DIR/error-festival.rs:1 :1
50+ --> $DIR/error-festival.rs:3 :1
5151 |
5252LL | enum Question {
5353 | ^^^^^^^^^^^^^ must implement `Not`
5454note: the trait `Not` must be implemented
5555 --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
5656
5757error[E0604]: only `u8` can be cast as `char`, not `u32`
58- --> $DIR/error-festival.rs:25 :5
58+ --> $DIR/error-festival.rs:27 :5
5959 |
6060LL | 0u32 as char;
6161 | ^^^^^^^^^^^^
@@ -64,13 +64,13 @@ LL | 0u32 as char;
6464 | help: try `char::from_u32` instead: `char::from_u32(0u32)`
6565
6666error[E0605]: non-primitive cast: `u8` as `Vec<u8>`
67- --> $DIR/error-festival.rs:29 :5
67+ --> $DIR/error-festival.rs:31 :5
6868 |
6969LL | x as Vec<u8>;
7070 | ^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
7171
7272error[E0054]: cannot cast `{integer}` as `bool`
73- --> $DIR/error-festival.rs:33 :24
73+ --> $DIR/error-festival.rs:35 :24
7474 |
7575LL | let x_is_nonzero = x as bool;
7676 | ^^^^^^^^^
@@ -82,7 +82,7 @@ LL + let x_is_nonzero = x != 0;
8282 |
8383
8484error[E0606]: casting `&u8` as `u32` is invalid
85- --> $DIR/error-festival.rs:37 :18
85+ --> $DIR/error-festival.rs:39 :18
8686 |
8787LL | let y: u32 = x as u32;
8888 | ^^^^^^^^
@@ -93,7 +93,7 @@ LL | let y: u32 = *x as u32;
9393 | +
9494
9595error[E0607]: cannot cast thin pointer `*const u8` to wide pointer `*const [u8]`
96- --> $DIR/error-festival.rs:41 :5
96+ --> $DIR/error-festival.rs:43 :5
9797 |
9898LL | v as *const [u8];
9999 | ^^^^^^^^^^^^^^^^
0 commit comments