1 error: any use of this value will cause an error
2 --> $DIR/const-eval-overflow2.rs:24:1
4 LL | / const VALS_I8: (i8,) = //~ ERROR any use of this value will cause an error
8 | | ----------- attempt to subtract with overflow
12 note: lint level defined here
13 --> $DIR/const-eval-overflow2.rs:18:9
15 LL | #![deny(const_err)]
18 error: any use of this value will cause an error
19 --> $DIR/const-eval-overflow2.rs:30:1
21 LL | / const VALS_I16: (i16,) = //~ ERROR any use of this value will cause an error
24 | | ------------ attempt to subtract with overflow
28 error: any use of this value will cause an error
29 --> $DIR/const-eval-overflow2.rs:35:1
31 LL | / const VALS_I32: (i32,) = //~ ERROR any use of this value will cause an error
34 | | ------------ attempt to subtract with overflow
38 error: any use of this value will cause an error
39 --> $DIR/const-eval-overflow2.rs:40:1
41 LL | / const VALS_I64: (i64,) = //~ ERROR any use of this value will cause an error
44 | | ------------ attempt to subtract with overflow
48 error: any use of this value will cause an error
49 --> $DIR/const-eval-overflow2.rs:45:1
51 LL | / const VALS_U8: (u8,) = //~ ERROR any use of this value will cause an error
54 | | ----------- attempt to subtract with overflow
58 error: any use of this value will cause an error
59 --> $DIR/const-eval-overflow2.rs:50:1
61 LL | / const VALS_U16: (u16,) = ( //~ ERROR any use of this value will cause an error
63 | | ------------ attempt to subtract with overflow
67 error: any use of this value will cause an error
68 --> $DIR/const-eval-overflow2.rs:54:1
70 LL | / const VALS_U32: (u32,) = ( //~ ERROR any use of this value will cause an error
72 | | ------------ attempt to subtract with overflow
76 error: any use of this value will cause an error
77 --> $DIR/const-eval-overflow2.rs:58:1
79 LL | / const VALS_U64: (u64,) = //~ ERROR any use of this value will cause an error
82 | | ------------ attempt to subtract with overflow
86 error: any use of this value will cause an error
87 --> $DIR/const-eval-overflow2.rs:24:1
89 LL | / const VALS_I8: (i8,) = //~ ERROR any use of this value will cause an error
93 | | ----------- attempt to subtract with overflow
97 error[E0080]: erroneous constant used
98 --> $DIR/const-eval-overflow2.rs:64:5
100 LL | foo(VALS_I8); //~ ERROR erroneous constant used
101 | ^^^^^^^^^^^^ referenced constant has errors
103 error[E0080]: erroneous constant used
104 --> $DIR/const-eval-overflow2.rs:65:5
106 LL | foo(VALS_I16); //~ ERROR erroneous constant used
107 | ^^^^^^^^^^^^^ referenced constant has errors
109 error[E0080]: erroneous constant used
110 --> $DIR/const-eval-overflow2.rs:66:5
112 LL | foo(VALS_I32); //~ ERROR erroneous constant used
113 | ^^^^^^^^^^^^^ referenced constant has errors
115 error[E0080]: erroneous constant used
116 --> $DIR/const-eval-overflow2.rs:67:5
118 LL | foo(VALS_I64); //~ ERROR erroneous constant used
119 | ^^^^^^^^^^^^^ referenced constant has errors
121 error[E0080]: erroneous constant used
122 --> $DIR/const-eval-overflow2.rs:69:5
124 LL | foo(VALS_U8); //~ ERROR erroneous constant used
125 | ^^^^^^^^^^^^ referenced constant has errors
127 error[E0080]: erroneous constant used
128 --> $DIR/const-eval-overflow2.rs:70:5
130 LL | foo(VALS_U16); //~ ERROR erroneous constant used
131 | ^^^^^^^^^^^^^ referenced constant has errors
133 error[E0080]: erroneous constant used
134 --> $DIR/const-eval-overflow2.rs:71:5
136 LL | foo(VALS_U32); //~ ERROR erroneous constant used
137 | ^^^^^^^^^^^^^ referenced constant has errors
139 error[E0080]: erroneous constant used
140 --> $DIR/const-eval-overflow2.rs:72:5
142 LL | foo(VALS_U64); //~ ERROR erroneous constant used
143 | ^^^^^^^^^^^^^ referenced constant has errors
145 error: aborting due to 17 previous errors
147 For more information about this error, try `rustc --explain E0080`.