Debian Codegraph @

gcc/testsuite/rust/compile/torture/forward_decl_5.rs

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 }