☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
traits16.rs
☽
☼
gcc/testsuite/rust/compile/torture/traits16.rs
code
plain
raw
1
#[lang = "sized"]
2
pub trait Sized {}
3
4
trait A {
5
fn a() -> i32 {
6
123
7
}
8
9
fn b() -> i32 {
10
Self::a() + 456
11
}
12
}
13
14
struct S;
15
impl A for S {}
16
17
fn main() {
18
let a;
19
a = S::a();
20
21
let b;
22
b = S::b();
23
}