☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
traits1.rs
☽
☼
gcc/testsuite/rust/compile/torture/traits1.rs
code
plain
raw
1
#[lang = "sized"]
2
pub trait Sized {}
3
4
trait Foo {
5
fn bar() -> i32;
6
}
7
8
struct Test(i32, f32);
9
10
impl Foo for Test {
11
fn bar() -> i32 {
12
123
13
}
14
}
15
16
fn main() {
17
let a: i32;
18
a = Test::bar();
19
}