Sign in
fuchsia
/
third_party
/
rust
/
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
/
.
/
tests
/
ui
/
numbers-arithmetic
/
overflowing-pow-unsigned.rs
blob: dea9a4d5428bec4e3e2d82ca211e83507b546a11 [
file
] [
log
] [
blame
]
//@ 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
);
}