2017-07-03 22:27:09 -05:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
|
|
|
|
use std::intrinsics::*;
|
|
|
|
|
2019-08-03 13:54:57 -05:00
|
|
|
//error-pattern: Overflowing shift by 64 in `unchecked_shr`
|
2017-07-03 22:27:09 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
unsafe {
|
|
|
|
let _n = unchecked_shr(1i64, 64);
|
|
|
|
}
|
|
|
|
}
|