2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2016-08-06 22:58:16 -05:00
|
|
|
// error-pattern:thread 'main' panicked at 'attempt to multiply with overflow'
|
2015-09-13 21:19:36 -05:00
|
|
|
// compile-flags: -C debug-assertions
|
|
|
|
|
|
|
|
fn main() {
|
2016-07-20 17:23:52 -05:00
|
|
|
let _x = 2u32.pow(1024);
|
2015-09-13 21:19:36 -05:00
|
|
|
}
|