]> git.lizzy.rs Git - rust.git/blob - tests/ui/numbers-arithmetic/overflowing-pow-signed.rs
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / 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 }