Skip to content

Commit

Permalink
placate check-pretty and pretty-printer bug; see also issue 23623.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Mar 22, 2015
1 parent 5e47c66 commit 4dfec6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/run-fail/overflowing-lsh-4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
fn id<T>(x: T) -> T { x }

fn main() {
let x = 1_i8 << id(17); // signals overflow when checking is on
// this signals overflow when checking is on
let x = 1_i8 << id(17);

// ... but when checking is off, the fallback will truncate the
// input to its lower three bits (= 1). Note that this is *not*
Expand Down
3 changes: 2 additions & 1 deletion src/test/run-fail/overflowing-rsh-4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
fn id<T>(x: T) -> T { x }

fn main() {
let x = 2_i8 >> id(17); // signals overflow when checking is on
// this signals overflow when checking is on
let x = 2_i8 >> id(17);

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

0 comments on commit 4dfec6c

Please sign in to comment.