|
1 | 1 | error[E0425]: cannot find value `y` in this scope
|
2 | 2 | --> $DIR/error-festival.rs:24:5
|
3 | 3 | |
|
4 |
| -24 | y = 2; |
| 4 | +LL | y = 2; |
5 | 5 | | ^ did you mean `x`?
|
6 | 6 |
|
7 | 7 | error[E0603]: constant `FOO` is private
|
8 | 8 | --> $DIR/error-festival.rs:32:5
|
9 | 9 | |
|
10 |
| -32 | foo::FOO; |
| 10 | +LL | foo::FOO; |
11 | 11 | | ^^^^^^^^
|
12 | 12 |
|
13 | 13 | error[E0368]: binary assignment operation `+=` cannot be applied to type `&str`
|
14 | 14 | --> $DIR/error-festival.rs:22:5
|
15 | 15 | |
|
16 |
| -22 | x += 2; |
| 16 | +LL | x += 2; |
17 | 17 | | -^^^^^
|
18 | 18 | | |
|
19 | 19 | | cannot use `+=` on type `&str`
|
20 | 20 |
|
21 | 21 | error[E0599]: no method named `z` found for type `&str` in the current scope
|
22 | 22 | --> $DIR/error-festival.rs:26:7
|
23 | 23 | |
|
24 |
| -26 | x.z(); |
| 24 | +LL | x.z(); |
25 | 25 | | ^
|
26 | 26 |
|
27 | 27 | error[E0600]: cannot apply unary operator `!` to type `Question`
|
28 | 28 | --> $DIR/error-festival.rs:29:5
|
29 | 29 | |
|
30 |
| -29 | !Question::Yes; |
| 30 | +LL | !Question::Yes; |
31 | 31 | | ^^^^^^^^^^^^^^
|
32 | 32 |
|
33 | 33 | error[E0604]: only `u8` can be cast as `char`, not `u32`
|
34 | 34 | --> $DIR/error-festival.rs:35:5
|
35 | 35 | |
|
36 |
| -35 | 0u32 as char; |
| 36 | +LL | 0u32 as char; |
37 | 37 | | ^^^^^^^^^^^^
|
38 | 38 |
|
39 | 39 | error[E0605]: non-primitive cast: `u8` as `std::vec::Vec<u8>`
|
40 | 40 | --> $DIR/error-festival.rs:39:5
|
41 | 41 | |
|
42 |
| -39 | x as Vec<u8>; |
| 42 | +LL | x as Vec<u8>; |
43 | 43 | | ^^^^^^^^^^^^
|
44 | 44 | |
|
45 | 45 | = note: an `as` expression can only be used to convert between primitive types. Consider using the `From` trait
|
46 | 46 |
|
47 | 47 | error[E0054]: cannot cast as `bool`
|
48 | 48 | --> $DIR/error-festival.rs:43:24
|
49 | 49 | |
|
50 |
| -43 | let x_is_nonzero = x as bool; |
| 50 | +LL | let x_is_nonzero = x as bool; |
51 | 51 | | ^^^^^^^^^ unsupported cast
|
52 | 52 | |
|
53 | 53 | = help: compare with zero instead
|
54 | 54 |
|
55 | 55 | error[E0606]: casting `&u8` as `u32` is invalid
|
56 | 56 | --> $DIR/error-festival.rs:47:18
|
57 | 57 | |
|
58 |
| -47 | let y: u32 = x as u32; |
| 58 | +LL | let y: u32 = x as u32; |
59 | 59 | | ^^^^^^^^ cannot cast `&u8` as `u32`
|
60 | 60 | |
|
61 | 61 | help: did you mean `*x`?
|
62 | 62 | --> $DIR/error-festival.rs:47:18
|
63 | 63 | |
|
64 |
| -47 | let y: u32 = x as u32; |
| 64 | +LL | let y: u32 = x as u32; |
65 | 65 | | ^
|
66 | 66 |
|
67 | 67 | error[E0607]: cannot cast thin pointer `*const u8` to fat pointer `*const [u8]`
|
68 | 68 | --> $DIR/error-festival.rs:51:5
|
69 | 69 | |
|
70 |
| -51 | v as *const [u8]; |
| 70 | +LL | v as *const [u8]; |
71 | 71 | | ^^^^^^^^^^^^^^^^
|
72 | 72 |
|
73 | 73 | error: aborting due to 10 previous errors
|
|
0 commit comments