Skip to content

Commit 8753d0f

Browse files
committed
Overflows only panic in debug mode
1 parent 27e710f commit 8753d0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/run-fail/promoted_overflow.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#![allow(const_err)]
1212

1313
// error-pattern: overflow
14+
// compile-flags: -C overflow-checks=yes
1415

1516
fn main() {
1617
let x: &'static u32 = &(0u32 - 1);

0 commit comments

Comments
 (0)