Sign in
fuchsia
/
third_party
/
rust
/
97d936423c914c4e3402bfecfd6943e1edf23815
/
.
/
src
/
test
/
run-fail
/
overflowing-lsh-2.rs
blob: 7b0b37dfed043e437a44e1c8f331dd097d1aa21d [
file
] [
log
] [
blame
]
// error-pattern:thread 'main' panicked at 'attempt to shift left with overflow'
// compile-flags: -C debug-assertions
#![
warn
(
exceeding_bitshifts
)]
#![
warn
(
const_err
)]
fn
main
()
{
let
_x
=
1
<<
-
1
;
}