]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/const-eval-overflow2b.stderr
Report const eval error inside the query
[rust.git] / src / test / ui / consts / const-eval / const-eval-overflow2b.stderr
1 error: any use of this value will cause an error
2   --> $DIR/const-eval-overflow2b.rs:24:1
3    |
4 LL | / const VALS_I8: (i8,) = //~ ERROR any use of this value will cause an error
5 LL | |      //~^ const_err
6 LL | |     (
7 LL | |      i8::MAX + 1,
8    | |      ----------- attempt to add with overflow
9 LL | |      );
10    | |_______^
11    |
12 note: lint level defined here
13   --> $DIR/const-eval-overflow2b.rs:18:9
14    |
15 LL | #![deny(const_err)]
16    |         ^^^^^^^^^
17
18 error: any use of this value will cause an error
19   --> $DIR/const-eval-overflow2b.rs:30:1
20    |
21 LL | / const VALS_I16: (i16,) = //~ ERROR any use of this value will cause an error
22 LL | |     (
23 LL | |      i16::MAX + 1,
24    | |      ------------ attempt to add with overflow
25 LL | |      );
26    | |_______^
27
28 error: any use of this value will cause an error
29   --> $DIR/const-eval-overflow2b.rs:35:1
30    |
31 LL | / const VALS_I32: (i32,) = //~ ERROR any use of this value will cause an error
32 LL | |     (
33 LL | |      i32::MAX + 1,
34    | |      ------------ attempt to add with overflow
35 LL | |      );
36    | |_______^
37
38 error: any use of this value will cause an error
39   --> $DIR/const-eval-overflow2b.rs:40:1
40    |
41 LL | / const VALS_I64: (i64,) = //~ ERROR any use of this value will cause an error
42 LL | |     (
43 LL | |      i64::MAX + 1,
44    | |      ------------ attempt to add with overflow
45 LL | |      );
46    | |_______^
47
48 error: any use of this value will cause an error
49   --> $DIR/const-eval-overflow2b.rs:45:1
50    |
51 LL | / const VALS_U8: (u8,) = //~ ERROR any use of this value will cause an error
52 LL | |     (
53 LL | |      u8::MAX + 1,
54    | |      ----------- attempt to add with overflow
55 LL | |      );
56    | |_______^
57
58 error: any use of this value will cause an error
59   --> $DIR/const-eval-overflow2b.rs:50:1
60    |
61 LL | / const VALS_U16: (u16,) = ( //~ ERROR any use of this value will cause an error
62 LL | |      u16::MAX + 1,
63    | |      ------------ attempt to add with overflow
64 LL | |      );
65    | |_______^
66
67 error: any use of this value will cause an error
68   --> $DIR/const-eval-overflow2b.rs:54:1
69    |
70 LL | / const VALS_U32: (u32,) = ( //~ ERROR any use of this value will cause an error
71 LL | |      u32::MAX + 1,
72    | |      ------------ attempt to add with overflow
73 LL | |      );
74    | |_______^
75
76 error: any use of this value will cause an error
77   --> $DIR/const-eval-overflow2b.rs:58:1
78    |
79 LL | / const VALS_U64: (u64,) = //~ ERROR any use of this value will cause an error
80 LL | |     (
81 LL | |      u64::MAX + 1,
82    | |      ------------ attempt to add with overflow
83 LL | |      );
84    | |_______^
85
86 error: any use of this value will cause an error
87   --> $DIR/const-eval-overflow2b.rs:24:1
88    |
89 LL | / const VALS_I8: (i8,) = //~ ERROR any use of this value will cause an error
90 LL | |      //~^ const_err
91 LL | |     (
92 LL | |      i8::MAX + 1,
93    | |      ----------- attempt to add with overflow
94 LL | |      );
95    | |_______^
96
97 error[E0080]: erroneous constant used
98   --> $DIR/const-eval-overflow2b.rs:64:5
99    |
100 LL |     foo(VALS_I8); //~ ERROR erroneous constant used
101    |     ^^^^^^^^^^^^ referenced constant has errors
102
103 error[E0080]: erroneous constant used
104   --> $DIR/const-eval-overflow2b.rs:65:5
105    |
106 LL |     foo(VALS_I16); //~ ERROR erroneous constant used
107    |     ^^^^^^^^^^^^^ referenced constant has errors
108
109 error[E0080]: erroneous constant used
110   --> $DIR/const-eval-overflow2b.rs:66:5
111    |
112 LL |     foo(VALS_I32); //~ ERROR erroneous constant used
113    |     ^^^^^^^^^^^^^ referenced constant has errors
114
115 error[E0080]: erroneous constant used
116   --> $DIR/const-eval-overflow2b.rs:67:5
117    |
118 LL |     foo(VALS_I64); //~ ERROR erroneous constant used
119    |     ^^^^^^^^^^^^^ referenced constant has errors
120
121 error[E0080]: erroneous constant used
122   --> $DIR/const-eval-overflow2b.rs:69:5
123    |
124 LL |     foo(VALS_U8); //~ ERROR erroneous constant used
125    |     ^^^^^^^^^^^^ referenced constant has errors
126
127 error[E0080]: erroneous constant used
128   --> $DIR/const-eval-overflow2b.rs:70:5
129    |
130 LL |     foo(VALS_U16); //~ ERROR erroneous constant used
131    |     ^^^^^^^^^^^^^ referenced constant has errors
132
133 error[E0080]: erroneous constant used
134   --> $DIR/const-eval-overflow2b.rs:71:5
135    |
136 LL |     foo(VALS_U32); //~ ERROR erroneous constant used
137    |     ^^^^^^^^^^^^^ referenced constant has errors
138
139 error[E0080]: erroneous constant used
140   --> $DIR/const-eval-overflow2b.rs:72:5
141    |
142 LL |     foo(VALS_U64); //~ ERROR erroneous constant used
143    |     ^^^^^^^^^^^^^ referenced constant has errors
144
145 error: aborting due to 17 previous errors
146
147 For more information about this error, try `rustc --explain E0080`.