]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/asm/type-check-2.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / asm / type-check-2.rs
index 0677167ccfe7356310cd760bcf85988b53d4198e..c70a8802814f7a7553562a668101dd1ff208f9dd 100644 (file)
@@ -26,14 +26,6 @@ fn main() {
         asm!("{}", inout(reg) v[0]);
         //~^ ERROR cannot borrow `v` as mutable, as it is not declared as mutable
 
-        // Const operands must be integer or floats, and must be constants.
-
-        asm!("{}", const 0);
-        asm!("{}", const 0i32);
-        asm!("{}", const 0f32);
-        asm!("{}", const 0 as *mut u8);
-        //~^ ERROR asm `const` arguments must be integer or floating-point values
-
         // This currently causes an ICE: https://github.com/rust-lang/rust/issues/81857
         // asm!("{}", const &0);
         // ERROR asm `const` arguments must be integer or floating-point values