2018-09-07 03:53:31 -05:00
|
|
|
error: any use of this value will cause an error
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/const-int-unchecked.rs:5:1
|
2018-09-06 06:13:07 -05:00
|
|
|
|
|
|
|
|
LL | const SHR: u8 = unsafe { intrinsics::unchecked_shr(5_u8, 8) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^----------------------------------^^^
|
|
|
|
| |
|
|
|
|
| Overflowing shift by 8 in unchecked_shr
|
|
|
|
|
|
|
|
|
= note: #[deny(const_err)] on by default
|
|
|
|
|
2018-09-07 03:53:31 -05:00
|
|
|
error: any use of this value will cause an error
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/const-int-unchecked.rs:7:1
|
2018-09-06 06:13:07 -05:00
|
|
|
|
|
|
|
|
LL | const SHL: u8 = unsafe { intrinsics::unchecked_shl(5_u8, 8) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^----------------------------------^^^
|
|
|
|
| |
|
|
|
|
| Overflowing shift by 8 in unchecked_shl
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|