about summary refs log tree commit diff
path: root/tests/ui/lint/clashing-extern-fn-recursion.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-09-13 11:13:59 +0200
committerRalf Jung <post@ralfj.de>2024-09-13 11:51:17 +0200
commitf362a59c3ed6241e515e2516a048945a879bbfe3 (patch)
tree972ef1506f1e054a856ebf371c16c41d72637223 /tests/ui/lint/clashing-extern-fn-recursion.rs
parenta5efa01895e82fa705146507d15311b29c715450 (diff)
downloadrust-f362a59c3ed6241e515e2516a048945a879bbfe3.tar.gz
rust-f362a59c3ed6241e515e2516a048945a879bbfe3.zip
some fixes for clashing_extern_declarations lint
Diffstat (limited to 'tests/ui/lint/clashing-extern-fn-recursion.rs')
-rw-r--r--tests/ui/lint/clashing-extern-fn-recursion.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/lint/clashing-extern-fn-recursion.rs b/tests/ui/lint/clashing-extern-fn-recursion.rs
index 40bef400594..ab311d398f9 100644
--- a/tests/ui/lint/clashing-extern-fn-recursion.rs
+++ b/tests/ui/lint/clashing-extern-fn-recursion.rs
@@ -92,6 +92,7 @@ mod ref_recursion_once_removed {
             reffy: &'a Reffy2<'a>,
         }
 
+        #[repr(C)]
         struct Reffy2<'a> {
             reffy: &'a Reffy1<'a>,
         }
@@ -107,6 +108,7 @@ mod ref_recursion_once_removed {
             reffy: &'a Reffy2<'a>,
         }
 
+        #[repr(C)]
         struct Reffy2<'a> {
             reffy: &'a Reffy1<'a>,
         }