File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
src/test/ui/consts/const-eval Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 11warning: 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
33 |
44LL | const VOID: ! = { let x = 0 * std::mem::size_of::<T>(); [][x] };
55 | --------------------------------------------------------^^^^^---
@@ -13,9 +13,10 @@ LL | #![warn(const_err)]
1313 | ^^^^^^^^^
1414
1515error: 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
1717 |
1818LL | let _ = PrintName::<T>::VOID;
1919 | ^^^^^^^^^^^^^^^^^^^^
2020
2121error: aborting due to previous error
22+
Original file line number Diff line number Diff line change 11warning: 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
33 |
44LL | const VOID: ! = panic!();
55 | ----------------^^^^^^^^-
66 | |
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
88 |
99note: lint level defined here
1010 --> $DIR/panic-assoc-never-type.rs:4:9
@@ -14,7 +14,7 @@ LL | #![warn(const_err)]
1414 = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
1515
1616error[E0080]: erroneous constant used
17- --> $DIR/panic-assoc-never-type.rs:15 :13
17+ --> $DIR/panic-assoc-never-type.rs:16 :13
1818 |
1919LL | let _ = PrintName::VOID;
2020 | ^^^^^^^^^^^^^^^ referenced constant has errors
Original file line number Diff line number Diff line change 11warning: 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
33 |
44LL | const VOID: ! = panic!();
55 | ----------------^^^^^^^^-
66 | |
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
88 |
99note: lint level defined here
1010 --> $DIR/panic-never-type.rs:4:9
@@ -14,7 +14,7 @@ LL | #![warn(const_err)]
1414 = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
1515
1616error[E0080]: erroneous constant used
17- --> $DIR/panic-never-type.rs:11 :13
17+ --> $DIR/panic-never-type.rs:12 :13
1818 |
1919LL | let _ = VOID;
2020 | ^^^^ referenced constant has errors
You can’t perform that action at this time.
0 commit comments