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