]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/overflowing-pow-signed.rs
Rollup merge of #56044 - matthewjasper:function-param-drop-order, r=cramertj
[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 }