diff options
Diffstat (limited to 'gcc/testsuite/rust/compile/issue-3524.rs')
-rw-r--r-- | gcc/testsuite/rust/compile/issue-3524.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/issue-3524.rs b/gcc/testsuite/rust/compile/issue-3524.rs new file mode 100644 index 0000000..62c8c35 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-3524.rs @@ -0,0 +1,9 @@ +struct A {} +// { dg-warning "struct is never constructed" "" { target *-*-* } .-1 } + +impl A { + fn main() {} + // { dg-warning "associated function is never used: .main." "" { target *-*-* } .-1 } +} + +fn main() {} |