]> git.proxmox.com Git - rustc.git/blame - src/test/ui/discrim/discrim-ill-typed.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / discrim / discrim-ill-typed.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/discrim-ill-typed.rs:17:16
b7449926
XL
3 |
4LL | OhNo = 0_u8,
60c5eb7d 5 | ^^^^ expected `i8`, found `u8`
e74abb32 6 |
48663c56
XL
7help: change the type of the numeric literal from `u8` to `i8`
8 |
9LL | OhNo = 0_i8,
10 | ^^^^
b7449926
XL
11
12error[E0308]: mismatched types
0731742a 13 --> $DIR/discrim-ill-typed.rs:30:16
b7449926
XL
14 |
15LL | OhNo = 0_i8,
60c5eb7d 16 | ^^^^ expected `u8`, found `i8`
e74abb32 17 |
48663c56
XL
18help: change the type of the numeric literal from `i8` to `u8`
19 |
20LL | OhNo = 0_u8,
21 | ^^^^
b7449926
XL
22
23error[E0308]: mismatched types
0731742a 24 --> $DIR/discrim-ill-typed.rs:43:16
b7449926
XL
25 |
26LL | OhNo = 0_u16,
60c5eb7d 27 | ^^^^^ expected `i16`, found `u16`
e74abb32 28 |
48663c56
XL
29help: change the type of the numeric literal from `u16` to `i16`
30 |
31LL | OhNo = 0_i16,
32 | ^^^^^
b7449926
XL
33
34error[E0308]: mismatched types
0731742a 35 --> $DIR/discrim-ill-typed.rs:56:16
b7449926
XL
36 |
37LL | OhNo = 0_i16,
60c5eb7d 38 | ^^^^^ expected `u16`, found `i16`
e74abb32 39 |
48663c56
XL
40help: change the type of the numeric literal from `i16` to `u16`
41 |
42LL | OhNo = 0_u16,
43 | ^^^^^
b7449926
XL
44
45error[E0308]: mismatched types
0731742a 46 --> $DIR/discrim-ill-typed.rs:69:16
b7449926
XL
47 |
48LL | OhNo = 0_u32,
60c5eb7d 49 | ^^^^^ expected `i32`, found `u32`
e74abb32 50 |
48663c56
XL
51help: change the type of the numeric literal from `u32` to `i32`
52 |
53LL | OhNo = 0_i32,
54 | ^^^^^
b7449926
XL
55
56error[E0308]: mismatched types
0731742a 57 --> $DIR/discrim-ill-typed.rs:82:16
b7449926
XL
58 |
59LL | OhNo = 0_i32,
60c5eb7d 60 | ^^^^^ expected `u32`, found `i32`
e74abb32 61 |
48663c56
XL
62help: change the type of the numeric literal from `i32` to `u32`
63 |
64LL | OhNo = 0_u32,
65 | ^^^^^
b7449926
XL
66
67error[E0308]: mismatched types
0731742a 68 --> $DIR/discrim-ill-typed.rs:95:16
b7449926
XL
69 |
70LL | OhNo = 0_u64,
60c5eb7d 71 | ^^^^^ expected `i64`, found `u64`
e74abb32 72 |
48663c56
XL
73help: change the type of the numeric literal from `u64` to `i64`
74 |
75LL | OhNo = 0_i64,
76 | ^^^^^
b7449926
XL
77
78error[E0308]: mismatched types
0731742a 79 --> $DIR/discrim-ill-typed.rs:108:16
b7449926
XL
80 |
81LL | OhNo = 0_i64,
60c5eb7d 82 | ^^^^^ expected `u64`, found `i64`
e74abb32 83 |
48663c56
XL
84help: change the type of the numeric literal from `i64` to `u64`
85 |
86LL | OhNo = 0_u64,
87 | ^^^^^
b7449926
XL
88
89error: aborting due to 8 previous errors
90
91For more information about this error, try `rustc --explain E0308`.