]> git.lizzy.rs Git - rust.git/blob - src/test/ui/enum/enum-discrim-too-small.stderr
Rollup merge of #100479 - compiler-errors:argument-type-error-improvements, r=lcnr
[rust.git] / src / test / ui / enum / enum-discrim-too-small.stderr
1 error[E0600]: cannot apply unary operator `-` to type `u8`
2   --> $DIR/enum-discrim-too-small.rs:5:11
3    |
4 LL |     Cu8 = -23,
5    |           ^^^ cannot apply unary operator `-`
6    |
7    = note: unsigned values cannot be negated
8
9 error[E0600]: cannot apply unary operator `-` to type `u16`
10   --> $DIR/enum-discrim-too-small.rs:13:12
11    |
12 LL |     Cu16 = -22333,
13    |            ^^^^^^ cannot apply unary operator `-`
14    |
15    = note: unsigned values cannot be negated
16
17 error[E0600]: cannot apply unary operator `-` to type `u32`
18   --> $DIR/enum-discrim-too-small.rs:21:12
19    |
20 LL |     Cu32 = -2_000_000_000,
21    |            ^^^^^^^^^^^^^^ cannot apply unary operator `-`
22    |
23    = note: unsigned values cannot be negated
24
25 error[E0600]: cannot apply unary operator `-` to type `u64`
26   --> $DIR/enum-discrim-too-small.rs:29:12
27    |
28 LL |     Cu32 = -2_000_000_000,
29    |            ^^^^^^^^^^^^^^ cannot apply unary operator `-`
30    |
31    = note: unsigned values cannot be negated
32
33 error: aborting due to 4 previous errors
34
35 For more information about this error, try `rustc --explain E0600`.