Debian Codegraph @

gcc/testsuite/rust/compile/torture/impl_block_unused.rs

raw
1 struct Foo(i32, bool);
2
3 impl Foo {
4 fn new(a: i32, b: bool) -> Foo {
5 // { dg-warning "associated function is never used" "" { target *-*-* } .-1 }
6 Foo(a, b)
7 }
8
9 fn test2() -> i32 {
10 // { dg-warning "associated function is never used" "" { target *-*-* } .-1 }
11 1
12 }
13 }
14
15 fn main() {
16 let _a = Foo(1, true);
17 }