☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
name_resolution2.rs
☽
☼
gcc/testsuite/rust/compile/name_resolution2.rs
code
plain
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
}