☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
generics19.rs
☽
☼
gcc/testsuite/rust/compile/torture/generics19.rs
code
plain
raw
1
#[lang = "sized"]
2
pub trait Sized {}
3
4
struct Foo<X, Y>(X, Y);
5
6
impl<T> Foo<u32, T> {
7
fn new(a: T) -> Self {
8
Self(123, a)
9
}
10
}
11
12
fn main() {
13
let a;
14
a = Foo::new(false);
15
}