☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
issue-2238.rs
☽
☼
gcc/testsuite/rust/compile/issue-2238.rs
code
plain
raw
1
#[lang = "sized"]
2
pub trait Sized {}
3
4
fn main() {
5
struct Foo;
6
7
trait Bar {
8
fn foo(&self);
9
}
10
11
impl Bar for Foo {
12
fn foo(&self) {}
13
// { dg-warning "unused name" "" { target *-*-* } .-1 }
14
}
15
16
let s = Foo;
17
s.foo();
18
}