1
1
error[E0425]: cannot find value `y` in this scope
2
- --> $DIR/error-festival.rs:14 :5
2
+ --> $DIR/error-festival.rs:16 :5
3
3
|
4
4
LL | y = 2;
5
5
| ^
@@ -15,47 +15,47 @@ LL | let y = 2;
15
15
| +++
16
16
17
17
error[E0603]: constant `FOO` is private
18
- --> $DIR/error-festival.rs:22 :10
18
+ --> $DIR/error-festival.rs:24 :10
19
19
|
20
20
LL | foo::FOO;
21
21
| ^^^ private constant
22
22
|
23
23
note: the constant `FOO` is defined here
24
- --> $DIR/error-festival.rs:7 :5
24
+ --> $DIR/error-festival.rs:9 :5
25
25
|
26
26
LL | const FOO: u32 = 0;
27
27
| ^^^^^^^^^^^^^^^^^^^
28
28
29
29
error[E0368]: binary assignment operation `+=` cannot be applied to type `&str`
30
- --> $DIR/error-festival.rs:12 :5
30
+ --> $DIR/error-festival.rs:14 :5
31
31
|
32
32
LL | x += 2;
33
33
| -^^^^^
34
34
| |
35
35
| cannot use `+=` on type `&str`
36
36
37
37
error[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
39
39
|
40
40
LL | x.z();
41
41
| ^ method not found in `&str`
42
42
43
43
error[E0600]: cannot apply unary operator `!` to type `Question`
44
- --> $DIR/error-festival.rs:19 :5
44
+ --> $DIR/error-festival.rs:21 :5
45
45
|
46
46
LL | !Question::Yes;
47
47
| ^^^^^^^^^^^^^^ cannot apply unary operator `!`
48
48
|
49
49
note: an implementation of `Not` might be missing for `Question`
50
- --> $DIR/error-festival.rs:1 :1
50
+ --> $DIR/error-festival.rs:3 :1
51
51
|
52
52
LL | enum Question {
53
53
| ^^^^^^^^^^^^^ must implement `Not`
54
54
note: the trait `Not` must be implemented
55
55
--> $SRC_DIR/core/src/ops/bit.rs:LL:COL
56
56
57
57
error[E0604]: only `u8` can be cast as `char`, not `u32`
58
- --> $DIR/error-festival.rs:25 :5
58
+ --> $DIR/error-festival.rs:27 :5
59
59
|
60
60
LL | 0u32 as char;
61
61
| ^^^^^^^^^^^^
@@ -64,13 +64,13 @@ LL | 0u32 as char;
64
64
| help: try `char::from_u32` instead: `char::from_u32(0u32)`
65
65
66
66
error[E0605]: non-primitive cast: `u8` as `Vec<u8>`
67
- --> $DIR/error-festival.rs:29 :5
67
+ --> $DIR/error-festival.rs:31 :5
68
68
|
69
69
LL | x as Vec<u8>;
70
70
| ^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
71
71
72
72
error[E0054]: cannot cast `{integer}` as `bool`
73
- --> $DIR/error-festival.rs:33 :24
73
+ --> $DIR/error-festival.rs:35 :24
74
74
|
75
75
LL | let x_is_nonzero = x as bool;
76
76
| ^^^^^^^^^
@@ -82,7 +82,7 @@ LL + let x_is_nonzero = x != 0;
82
82
|
83
83
84
84
error[E0606]: casting `&u8` as `u32` is invalid
85
- --> $DIR/error-festival.rs:37 :18
85
+ --> $DIR/error-festival.rs:39 :18
86
86
|
87
87
LL | let y: u32 = x as u32;
88
88
| ^^^^^^^^
@@ -93,7 +93,7 @@ LL | let y: u32 = *x as u32;
93
93
| +
94
94
95
95
error[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
97
97
|
98
98
LL | v as *const [u8];
99
99
| ^^^^^^^^^^^^^^^^
0 commit comments