]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-exceeding-bitshifts2.stderr
Move parse-fail tests to UI
[rust.git] / src / test / ui / lint / lint-exceeding-bitshifts2.stderr
1 error: attempt to shift left with overflow
2   --> $DIR/lint-exceeding-bitshifts2.rs:17:15
3    |
4 LL |       let n = 1u8 << (4+4); //~ ERROR: attempt to shift left with overflow
5    |               ^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/lint-exceeding-bitshifts2.rs:11:9
9    |
10 LL | #![deny(exceeding_bitshifts, const_err)]
11    |         ^^^^^^^^^^^^^^^^^^^
12
13 error: attempt to shift left with overflow
14   --> $DIR/lint-exceeding-bitshifts2.rs:25:15
15    |
16 LL |       let n = 1_isize << BITS; //~ ERROR: attempt to shift left with overflow
17    |               ^^^^^^^^^^^^^^^
18
19 error: attempt to shift left with overflow
20   --> $DIR/lint-exceeding-bitshifts2.rs:26:15
21    |
22 LL |       let n = 1_usize << BITS; //~ ERROR: attempt to shift left with overflow
23    |               ^^^^^^^^^^^^^^^
24
25 error: aborting due to 3 previous errors
26