diff options
Diffstat (limited to 'src/test/ui/consts/const-eval/erroneous-const.rs')
-rw-r--r-- | src/test/ui/consts/const-eval/erroneous-const.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/ui/consts/const-eval/erroneous-const.rs b/src/test/ui/consts/const-eval/erroneous-const.rs index bee5a7cb3..cf11531ba 100644 --- a/src/test/ui/consts/const-eval/erroneous-const.rs +++ b/src/test/ui/consts/const-eval/erroneous-const.rs @@ -1,11 +1,9 @@ //! Make sure we error on erroneous consts even if they are unused. -#![warn(const_err, unconditional_panic)] +#![allow(unconditional_panic)] struct PrintName<T>(T); impl<T> PrintName<T> { - const VOID: () = [()][2]; //~WARN any use of this value will cause an error - //~^ WARN this operation will panic at runtime - //~| WARN this was previously accepted by the compiler but is being phased out + const VOID: () = [()][2]; //~ERROR evaluation of `PrintName::<i32>::VOID` failed } const fn no_codegen<T>() { |