]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/overflowing-pow-signed.rs
Merge commit '370c397ec9169809e5ad270079712e0043514240' into sync_cg_clif-2022-03-20
[rust.git] / src / test / ui / numbers-arithmetic / overflowing-pow-signed.rs
1 // run-fail
2 // error-pattern:thread 'main' panicked at 'attempt to multiply with overflow'
3 // ignore-emscripten no processes
4 // compile-flags: -C debug-assertions
5
6 fn main() {
7     let _x = 2i32.pow(1024);
8 }