We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de66639 commit 9050b33Copy full SHA for 9050b33
tests/ui/lint/lint-ctypes-non-recursion-limit.rs
@@ -0,0 +1,32 @@
1
+//@ check-pass
2
+
3
+#![recursion_limit = "5"]
4
+#![allow(unused)]
5
+#![deny(improper_ctypes)]
6
7
+#[repr(C)]
8
+struct F1(*const ());
9
10
+struct F2(*const ());
11
12
+struct F3(*const ());
13
14
+struct F4(*const ());
15
16
+struct F5(*const ());
17
18
+struct F6(*const ());
19
20
21
+struct B {
22
+ f1: F1,
23
+ f2: F2,
24
+ f3: F3,
25
+ f4: F4,
26
+ f5: F5,
27
+ f6: F6,
28
+}
29
30
+extern "C" fn foo(_: B) {}
31
32
+fn main() {}
0 commit comments