Overflows only panic in debug mode

This commit is contained in:
Oliver Schneider 2018-05-18 10:59:44 +02:00
parent 27e710f557
commit 8753d0f12f

View file

@ -11,6 +11,7 @@
#![allow(const_err)]
// error-pattern: overflow
// compile-flags: -C overflow-checks=yes
fn main() {
let x: &'static u32 = &(0u32 - 1);