Debian Codegraph @

gcc/testsuite/rust/compile/name_resolution4.rs

raw
1 #[lang = "sized"]
2 pub trait Sized {}
3
4 trait Foo {
5 fn foo(&self) {} // { dg-warning "unused name" }
6 }
7
8 struct Bar;
9
10 pub fn bar() {
11 impl Foo for Bar {}
12 }
13
14 fn main() {
15 Bar.foo();
16 }