Overflows only panic in debug mode
This commit is contained in:
parent
27e710f557
commit
8753d0f12f
1 changed files with 1 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
|||
#![allow(const_err)]
|
||||
|
||||
// error-pattern: overflow
|
||||
// compile-flags: -C overflow-checks=yes
|
||||
|
||||
fn main() {
|
||||
let x: &'static u32 = &(0u32 - 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue