We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e47c66 commit 4dfec6cCopy full SHA for 4dfec6c
src/test/run-fail/overflowing-lsh-4.rs
@@ -18,7 +18,8 @@
18
fn id<T>(x: T) -> T { x }
19
20
fn main() {
21
- let x = 1_i8 << id(17); // signals overflow when checking is on
+ // this signals overflow when checking is on
22
+ let x = 1_i8 << id(17);
23
24
// ... but when checking is off, the fallback will truncate the
25
// input to its lower three bits (= 1). Note that this is *not*
src/test/run-fail/overflowing-rsh-4.rs
- let x = 2_i8 >> id(17); // signals overflow when checking is on
+ let x = 2_i8 >> id(17);
0 commit comments