Debian Codegraph @

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

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 }