mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
adjust error messages in tests
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
#![feature(core_intrinsics)]
|
||||
|
||||
pub fn main() {
|
||||
let mut z: f64 = 1.0;
|
||||
unsafe {
|
||||
::std::intrinsics::atomic_xadd(&mut z, 2.0);
|
||||
//~^ ERROR: Atomic arithmetic operations only work on integer types
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,6 @@ pub fn main() {
|
||||
unsafe {
|
||||
use crate::rusti::*;
|
||||
|
||||
ctlz_nonzero(0u8); //~ ERROR ctlz_nonzero called on 0
|
||||
ctlz_nonzero(0u8); //~ ERROR `ctlz_nonzero` called on 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,6 @@ pub fn main() {
|
||||
unsafe {
|
||||
use crate::rusti::*;
|
||||
|
||||
cttz_nonzero(0u8); //~ ERROR cttz_nonzero called on 0
|
||||
cttz_nonzero(0u8); //~ ERROR `cttz_nonzero` called on 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
use std::intrinsics::*;
|
||||
|
||||
//error-pattern: Overflowing shift by 64 in unchecked_shr
|
||||
//error-pattern: Overflowing shift by 64 in `unchecked_shr`
|
||||
|
||||
fn main() {
|
||||
unsafe {
|
||||
|
||||
Reference in New Issue
Block a user