@@ -3,88 +3,48 @@ error[E0308]: mismatched types
3
3
|
4
4
LL | OhNo = 0_u8,
5
5
| ^^^^ expected `i8`, found `u8`
6
- |
7
- help: change the type of the numeric literal from `u8` to `i8`
8
- |
9
- LL | OhNo = 0_i8,
10
- | ^^^^
11
6
12
7
error[E0308]: mismatched types
13
8
--> $DIR/discrim-ill-typed.rs:30:16
14
9
|
15
10
LL | OhNo = 0_i8,
16
11
| ^^^^ expected `u8`, found `i8`
17
- |
18
- help: change the type of the numeric literal from `i8` to `u8`
19
- |
20
- LL | OhNo = 0_u8,
21
- | ^^^^
22
12
23
13
error[E0308]: mismatched types
24
14
--> $DIR/discrim-ill-typed.rs:43:16
25
15
|
26
16
LL | OhNo = 0_u16,
27
17
| ^^^^^ expected `i16`, found `u16`
28
- |
29
- help: change the type of the numeric literal from `u16` to `i16`
30
- |
31
- LL | OhNo = 0_i16,
32
- | ^^^^^
33
18
34
19
error[E0308]: mismatched types
35
20
--> $DIR/discrim-ill-typed.rs:56:16
36
21
|
37
22
LL | OhNo = 0_i16,
38
23
| ^^^^^ expected `u16`, found `i16`
39
- |
40
- help: change the type of the numeric literal from `i16` to `u16`
41
- |
42
- LL | OhNo = 0_u16,
43
- | ^^^^^
44
24
45
25
error[E0308]: mismatched types
46
26
--> $DIR/discrim-ill-typed.rs:69:16
47
27
|
48
28
LL | OhNo = 0_u32,
49
29
| ^^^^^ expected `i32`, found `u32`
50
- |
51
- help: change the type of the numeric literal from `u32` to `i32`
52
- |
53
- LL | OhNo = 0_i32,
54
- | ^^^^^
55
30
56
31
error[E0308]: mismatched types
57
32
--> $DIR/discrim-ill-typed.rs:82:16
58
33
|
59
34
LL | OhNo = 0_i32,
60
35
| ^^^^^ expected `u32`, found `i32`
61
- |
62
- help: change the type of the numeric literal from `i32` to `u32`
63
- |
64
- LL | OhNo = 0_u32,
65
- | ^^^^^
66
36
67
37
error[E0308]: mismatched types
68
38
--> $DIR/discrim-ill-typed.rs:95:16
69
39
|
70
40
LL | OhNo = 0_u64,
71
41
| ^^^^^ expected `i64`, found `u64`
72
- |
73
- help: change the type of the numeric literal from `u64` to `i64`
74
- |
75
- LL | OhNo = 0_i64,
76
- | ^^^^^
77
42
78
43
error[E0308]: mismatched types
79
44
--> $DIR/discrim-ill-typed.rs:108:16
80
45
|
81
46
LL | OhNo = 0_i64,
82
47
| ^^^^^ expected `u64`, found `i64`
83
- |
84
- help: change the type of the numeric literal from `i64` to `u64`
85
- |
86
- LL | OhNo = 0_u64,
87
- | ^^^^^
88
48
89
49
error: aborting due to 8 previous errors
90
50
0 commit comments