diff options
Diffstat (limited to 'src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs')
-rw-r--r-- | src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs b/src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs index 8064cc493..bc2ea3f18 100644 --- a/src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs +++ b/src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs @@ -1,21 +1,19 @@ // build-fail // Regression test for #66975 -#![warn(const_err, unconditional_panic)] +#![warn(unconditional_panic)] #![feature(never_type)] struct PrintName<T>(T); impl<T> PrintName<T> { const VOID: ! = { let x = 0 * std::mem::size_of::<T>(); [][x] }; - //~^ WARN any use of this value will cause an error - //~| WARN this was previously accepted by the compiler but is being phased out + //~^ ERROR evaluation of `PrintName::<()>::VOID` failed } fn f<T>() { let _ = PrintName::<T>::VOID; - //~^ ERROR erroneous constant encountered } pub fn main() { |