Skip to content

Commit 4dfec6c

Browse files
committed
placate check-pretty and pretty-printer bug; see also issue 23623.
1 parent 5e47c66 commit 4dfec6c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/test/run-fail/overflowing-lsh-4.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
fn id<T>(x: T) -> T { x }
1919

2020
fn main() {
21-
let x = 1_i8 << id(17); // signals overflow when checking is on
21+
// this signals overflow when checking is on
22+
let x = 1_i8 << id(17);
2223

2324
// ... but when checking is off, the fallback will truncate the
2425
// input to its lower three bits (= 1). Note that this is *not*

src/test/run-fail/overflowing-rsh-4.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
fn id<T>(x: T) -> T { x }
1919

2020
fn main() {
21-
let x = 2_i8 >> id(17); // signals overflow when checking is on
21+
// this signals overflow when checking is on
22+
let x = 2_i8 >> id(17);
2223

2324
// ... but when checking is off, the fallback will truncate the
2425
// input to its lower three bits (= 1). Note that this is *not*

0 commit comments

Comments
 (0)