Skip to content

Commit 0f8e843

Browse files
committed
make test pass even though it makes no sense
1 parent 54a6865 commit 0f8e843

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/compile-fail/erroneous_const.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
struct PrintName<T>(T);
88
impl<T> PrintName<T> {
9-
const VOID: ! = panic!(); //~WARN any use of this value will cause an error
9+
const VOID: ! = panic!(); //~ERROR any use of this value will cause an error
1010
}
1111

1212
fn no_codegen<T>() {
13-
if false {
14-
let _ = PrintName::<T>::VOID; //~ERROR referenced constant has errors
13+
if false { //~ERROR referenced constant has errors
14+
let _ = PrintName::<T>::VOID;
1515
}
1616
}
1717
fn main() {

0 commit comments

Comments
 (0)