We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf3fab4 commit 4cc7c97Copy full SHA for 4cc7c97
gcc/testsuite/rust/compile/issue-3524.rs
@@ -0,0 +1,9 @@
1
+struct A {}
2
+// { dg-warning "struct is never constructed" "" { target *-*-* } .-1 }
3
+
4
+impl A {
5
+ fn main() {}
6
+ // { dg-warning "associated function is never used: .main." "" { target *-*-* } .-1 }
7
+}
8
9
+fn main() {}
0 commit comments