placate check-pretty and pretty-printer bug; see also issue 23623.
This commit is contained in:
parent
5e47c6655b
commit
4dfec6cab5
2 changed files with 4 additions and 2 deletions
|
|
@ -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*
|
||||
|
|
|
|||
|
|
@ -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*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue