about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/ui/align-with-extern-c-fn.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/ui/align-with-extern-c-fn.rs b/src/test/ui/align-with-extern-c-fn.rs
index b336ed76940..8ba90225c6c 100644
--- a/src/test/ui/align-with-extern-c-fn.rs
+++ b/src/test/ui/align-with-extern-c-fn.rs
@@ -7,10 +7,9 @@
 
 #![feature(repr_align)]
 
-#[repr(align(16))]
+#[repr(align(16), C)]
 pub struct A(i64);
 
-#[allow(improper_ctypes)]
 pub extern "C" fn foo(x: A) {}
 
 fn main() {