placate check-pretty and pretty-printer bug; see also issue 23623.

This commit is contained in:
Felix S. Klock II 2015-03-22 23:53:06 +01:00
parent 5e47c6655b
commit 4dfec6cab5
2 changed files with 4 additions and 2 deletions

View file

@ -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*

View file

@ -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*