]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/asm/aarch64/type-check-3.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / asm / aarch64 / type-check-3.rs
index 8cac18b805269956e474f6b33acdbe745db05a46..623f6593d79ba51b1a1a56d410c4266e8dd48dae 100644 (file)
@@ -95,21 +95,3 @@ fn main() {
         asm!("{:x}", inout(reg) main => val_u64);
     }
 }
-
-// Constants must be... constant
-
-static S: i32 = 1;
-const fn const_foo(x: i32) -> i32 {
-    x
-}
-const fn const_bar<T>(x: T) -> T {
-    x
-}
-global_asm!("{}", const S);
-//~^ ERROR constants cannot refer to statics
-global_asm!("{}", const const_foo(0));
-global_asm!("{}", const const_foo(S));
-//~^ ERROR constants cannot refer to statics
-global_asm!("{}", const const_bar(0));
-global_asm!("{}", const const_bar(S));
-//~^ ERROR constants cannot refer to statics