Debian Codegraph @

gcc/testsuite/rust/compile/name_resolution2.rs

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