]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/overflowing-pow-signed.rs
Auto merge of #63994 - Centril:refactor-qualify-consts, r=spastorino,oli-obk
[rust.git] / src / test / run-fail / overflowing-pow-signed.rs
1 // error-pattern:thread 'main' panicked at 'attempt to multiply with overflow'
2 // compile-flags: -C debug-assertions
3
4 fn main() {
5     let _x = 2i32.pow(1024);
6 }