]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-eval/const-eval-overflow2c.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / const-eval-overflow2c.stderr
1 error: any use of this value will cause an error
2 --> $DIR/const-eval-overflow2c.rs:16:6
3 |
4 LL | / const VALS_I8: (i8,) =
5 LL | | (
6 LL | | i8::MIN * 2,
7 | | ^^^^^^^^^^^ attempt to compute `i8::MIN * 2_i8` which would overflow
8 LL | | );
9 | |_______-
10 |
11 note: the lint level is defined here
12 --> $DIR/const-eval-overflow2c.rs:8:9
13 |
14 LL | #![deny(const_err)]
15 | ^^^^^^^^^
16
17 error: any use of this value will cause an error
18 --> $DIR/const-eval-overflow2c.rs:22:6
19 |
20 LL | / const VALS_I16: (i16,) =
21 LL | | (
22 LL | | i16::MIN * 2,
23 | | ^^^^^^^^^^^^ attempt to compute `i16::MIN * 2_i16` which would overflow
24 LL | | );
25 | |_______-
26
27 error: any use of this value will cause an error
28 --> $DIR/const-eval-overflow2c.rs:28:6
29 |
30 LL | / const VALS_I32: (i32,) =
31 LL | | (
32 LL | | i32::MIN * 2,
33 | | ^^^^^^^^^^^^ attempt to compute `i32::MIN * 2_i32` which would overflow
34 LL | | );
35 | |_______-
36
37 error: any use of this value will cause an error
38 --> $DIR/const-eval-overflow2c.rs:34:6
39 |
40 LL | / const VALS_I64: (i64,) =
41 LL | | (
42 LL | | i64::MIN * 2,
43 | | ^^^^^^^^^^^^ attempt to compute `i64::MIN * 2_i64` which would overflow
44 LL | | );
45 | |_______-
46
47 error: any use of this value will cause an error
48 --> $DIR/const-eval-overflow2c.rs:40:6
49 |
50 LL | / const VALS_U8: (u8,) =
51 LL | | (
52 LL | | u8::MAX * 2,
53 | | ^^^^^^^^^^^ attempt to compute `u8::MAX * 2_u8` which would overflow
54 LL | | );
55 | |_______-
56
57 error: any use of this value will cause an error
58 --> $DIR/const-eval-overflow2c.rs:45:6
59 |
60 LL | / const VALS_U16: (u16,) = (
61 LL | | u16::MAX * 2,
62 | | ^^^^^^^^^^^^ attempt to compute `u16::MAX * 2_u16` which would overflow
63 LL | | );
64 | |_______-
65
66 error: any use of this value will cause an error
67 --> $DIR/const-eval-overflow2c.rs:50:6
68 |
69 LL | / const VALS_U32: (u32,) = (
70 LL | | u32::MAX * 2,
71 | | ^^^^^^^^^^^^ attempt to compute `u32::MAX * 2_u32` which would overflow
72 LL | | );
73 | |_______-
74
75 error: any use of this value will cause an error
76 --> $DIR/const-eval-overflow2c.rs:56:6
77 |
78 LL | / const VALS_U64: (u64,) =
79 LL | | (
80 LL | | u64::MAX * 2,
81 | | ^^^^^^^^^^^^ attempt to compute `u64::MAX * 2_u64` which would overflow
82 LL | | );
83 | |_______-
84
85 error: aborting due to 8 previous errors
86