File tree 3 files changed +9
-8
lines changed
src/test/ui/consts/const-eval
3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
warning: any use of this value will cause an error
2
- --> $DIR/index-out-of-bounds-never-type.rs:9 :61
2
+ --> $DIR/index-out-of-bounds-never-type.rs:10 :61
3
3
|
4
4
LL | const VOID: ! = { let x = 0 * std::mem::size_of::<T>(); [][x] };
5
5
| --------------------------------------------------------^^^^^---
@@ -13,9 +13,10 @@ LL | #![warn(const_err)]
13
13
| ^^^^^^^^^
14
14
15
15
error: erroneous constant encountered
16
- --> $DIR/index-out-of-bounds-never-type.rs:14 :13
16
+ --> $DIR/index-out-of-bounds-never-type.rs:15 :13
17
17
|
18
18
LL | let _ = PrintName::<T>::VOID;
19
19
| ^^^^^^^^^^^^^^^^^^^^
20
20
21
21
error: aborting due to previous error
22
+
Original file line number Diff line number Diff line change 1
1
warning: any use of this value will cause an error
2
- --> $DIR/panic-assoc-never-type.rs:10 :21
2
+ --> $DIR/panic-assoc-never-type.rs:11 :21
3
3
|
4
4
LL | const VOID: ! = panic!();
5
5
| ----------------^^^^^^^^-
6
6
| |
7
- | the evaluated program panicked at 'explicit panic', $DIR/panic-assoc-never-type.rs:10 :21
7
+ | the evaluated program panicked at 'explicit panic', $DIR/panic-assoc-never-type.rs:11 :21
8
8
|
9
9
note: lint level defined here
10
10
--> $DIR/panic-assoc-never-type.rs:4:9
@@ -14,7 +14,7 @@ LL | #![warn(const_err)]
14
14
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
15
15
16
16
error[E0080]: erroneous constant used
17
- --> $DIR/panic-assoc-never-type.rs:15 :13
17
+ --> $DIR/panic-assoc-never-type.rs:16 :13
18
18
|
19
19
LL | let _ = PrintName::VOID;
20
20
| ^^^^^^^^^^^^^^^ referenced constant has errors
Original file line number Diff line number Diff line change 1
1
warning: any use of this value will cause an error
2
- --> $DIR/panic-never-type.rs:7 :17
2
+ --> $DIR/panic-never-type.rs:8 :17
3
3
|
4
4
LL | const VOID: ! = panic!();
5
5
| ----------------^^^^^^^^-
6
6
| |
7
- | the evaluated program panicked at 'explicit panic', $DIR/panic-never-type.rs:7 :17
7
+ | the evaluated program panicked at 'explicit panic', $DIR/panic-never-type.rs:8 :17
8
8
|
9
9
note: lint level defined here
10
10
--> $DIR/panic-never-type.rs:4:9
@@ -14,7 +14,7 @@ LL | #![warn(const_err)]
14
14
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
15
15
16
16
error[E0080]: erroneous constant used
17
- --> $DIR/panic-never-type.rs:11 :13
17
+ --> $DIR/panic-never-type.rs:12 :13
18
18
|
19
19
LL | let _ = VOID;
20
20
| ^^^^ referenced constant has errors
You can’t perform that action at this time.
0 commit comments