about summary refs log tree commit diff
path: root/tests/ui/numbers-arithmetic/overflowing-pow-unsigned.rs
blob: dea9a4d5428bec4e3e2d82ca211e83507b546a11 (plain)
1
2
3
4
5
6
7
8
9
//@ run-fail
//@ error-pattern:thread 'main' panicked
//@ error-pattern:attempt to multiply with overflow
//@ needs-subprocess
//@ compile-flags: -C debug-assertions

fn main() {
    let _x = 2u32.pow(1024);
}