Debian Codegraph @

gcc/testsuite/rust/compile/type-bindings1.rs

raw
1 #[lang = "sized"]
2 pub trait Sized {}
3
4 struct Foo<A, B>(A, B);
5
6 fn main() {
7 let a;
8 a = Foo::<A = i32, B = f32>(123f32);
9 // { dg-error "associated type bindings are not allowed here" "" { target *-*-* } .-1 }
10 }