]> git.lizzy.rs Git - rust.git/blob - src/test/ui/discrim/discrim-ill-typed.stderr
Rollup merge of #69625 - Stebalien:feat/iter-copy-specialize, r=KodrAus
[rust.git] / src / test / ui / discrim / discrim-ill-typed.stderr
1 error[E0308]: mismatched types
2   --> $DIR/discrim-ill-typed.rs:17:16
3    |
4 LL |         OhNo = 0_u8,
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
12 error[E0308]: mismatched types
13   --> $DIR/discrim-ill-typed.rs:30:16
14    |
15 LL |         OhNo = 0_i8,
16    |                ^^^^ 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
23 error[E0308]: mismatched types
24   --> $DIR/discrim-ill-typed.rs:43:16
25    |
26 LL |         OhNo = 0_u16,
27    |                ^^^^^ 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
34 error[E0308]: mismatched types
35   --> $DIR/discrim-ill-typed.rs:56:16
36    |
37 LL |         OhNo = 0_i16,
38    |                ^^^^^ 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
45 error[E0308]: mismatched types
46   --> $DIR/discrim-ill-typed.rs:69:16
47    |
48 LL |         OhNo = 0_u32,
49    |                ^^^^^ 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
56 error[E0308]: mismatched types
57   --> $DIR/discrim-ill-typed.rs:82:16
58    |
59 LL |         OhNo = 0_i32,
60    |                ^^^^^ 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
67 error[E0308]: mismatched types
68   --> $DIR/discrim-ill-typed.rs:95:16
69    |
70 LL |         OhNo = 0_u64,
71    |                ^^^^^ 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
78 error[E0308]: mismatched types
79   --> $DIR/discrim-ill-typed.rs:108:16
80    |
81 LL |         OhNo = 0_i64,
82    |                ^^^^^ 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
89 error: aborting due to 8 previous errors
90
91 For more information about this error, try `rustc --explain E0308`.