☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
type-bindings1.rs
☽
☼
gcc/testsuite/rust/compile/type-bindings1.rs
code
plain
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
}