]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-exceeding-bitshifts.stderr
Move parse-fail tests to UI
[rust.git] / src / test / ui / lint / lint-exceeding-bitshifts.stderr
1 error: attempt to shift left with overflow
2   --> $DIR/lint-exceeding-bitshifts.rs:17:15
3    |
4 LL |       let n = 1u8 << 8;   //~ ERROR: attempt to shift left with overflow
5    |               ^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/lint-exceeding-bitshifts.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-bitshifts.rs:19:15
15    |
16 LL |       let n = 1u16 << 16; //~ ERROR: attempt to shift left with overflow
17    |               ^^^^^^^^^^
18
19 error: attempt to shift left with overflow
20   --> $DIR/lint-exceeding-bitshifts.rs:21:15
21    |
22 LL |       let n = 1u32 << 32; //~ ERROR: attempt to shift left with overflow
23    |               ^^^^^^^^^^
24
25 error: attempt to shift left with overflow
26   --> $DIR/lint-exceeding-bitshifts.rs:23:15
27    |
28 LL |       let n = 1u64 << 64; //~ ERROR: attempt to shift left with overflow
29    |               ^^^^^^^^^^
30
31 error: attempt to shift left with overflow
32   --> $DIR/lint-exceeding-bitshifts.rs:25:15
33    |
34 LL |       let n = 1i8 << 8;   //~ ERROR: attempt to shift left with overflow
35    |               ^^^^^^^^
36
37 error: attempt to shift left with overflow
38   --> $DIR/lint-exceeding-bitshifts.rs:27:15
39    |
40 LL |       let n = 1i16 << 16; //~ ERROR: attempt to shift left with overflow
41    |               ^^^^^^^^^^
42
43 error: attempt to shift left with overflow
44   --> $DIR/lint-exceeding-bitshifts.rs:29:15
45    |
46 LL |       let n = 1i32 << 32; //~ ERROR: attempt to shift left with overflow
47    |               ^^^^^^^^^^
48
49 error: attempt to shift left with overflow
50   --> $DIR/lint-exceeding-bitshifts.rs:31:15
51    |
52 LL |       let n = 1i64 << 64; //~ ERROR: attempt to shift left with overflow
53    |               ^^^^^^^^^^
54
55 error: attempt to shift right with overflow
56   --> $DIR/lint-exceeding-bitshifts.rs:34:15
57    |
58 LL |       let n = 1u8 >> 8;   //~ ERROR: attempt to shift right with overflow
59    |               ^^^^^^^^
60
61 error: attempt to shift right with overflow
62   --> $DIR/lint-exceeding-bitshifts.rs:36:15
63    |
64 LL |       let n = 1u16 >> 16; //~ ERROR: attempt to shift right with overflow
65    |               ^^^^^^^^^^
66
67 error: attempt to shift right with overflow
68   --> $DIR/lint-exceeding-bitshifts.rs:38:15
69    |
70 LL |       let n = 1u32 >> 32; //~ ERROR: attempt to shift right with overflow
71    |               ^^^^^^^^^^
72
73 error: attempt to shift right with overflow
74   --> $DIR/lint-exceeding-bitshifts.rs:40:15
75    |
76 LL |       let n = 1u64 >> 64; //~ ERROR: attempt to shift right with overflow
77    |               ^^^^^^^^^^
78
79 error: attempt to shift right with overflow
80   --> $DIR/lint-exceeding-bitshifts.rs:42:15
81    |
82 LL |       let n = 1i8 >> 8;   //~ ERROR: attempt to shift right with overflow
83    |               ^^^^^^^^
84
85 error: attempt to shift right with overflow
86   --> $DIR/lint-exceeding-bitshifts.rs:44:15
87    |
88 LL |       let n = 1i16 >> 16; //~ ERROR: attempt to shift right with overflow
89    |               ^^^^^^^^^^
90
91 error: attempt to shift right with overflow
92   --> $DIR/lint-exceeding-bitshifts.rs:46:15
93    |
94 LL |       let n = 1i32 >> 32; //~ ERROR: attempt to shift right with overflow
95    |               ^^^^^^^^^^
96
97 error: attempt to shift right with overflow
98   --> $DIR/lint-exceeding-bitshifts.rs:48:15
99    |
100 LL |       let n = 1i64 >> 64; //~ ERROR: attempt to shift right with overflow
101    |               ^^^^^^^^^^
102
103 error: attempt to shift left with overflow
104   --> $DIR/lint-exceeding-bitshifts.rs:52:15
105    |
106 LL |       let n = n << 8; //~ ERROR: attempt to shift left with overflow
107    |               ^^^^^^
108
109 error: attempt to shift left with overflow
110   --> $DIR/lint-exceeding-bitshifts.rs:54:15
111    |
112 LL |       let n = 1u8 << -8; //~ ERROR: attempt to shift left with overflow
113    |               ^^^^^^^^^
114
115 error: aborting due to 18 previous errors
116