blob: 8cee8b00fb20264a085912959e449b396f519da8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
struct Foo<A, B>(A, B);
impl Foo<i32, f32> {
fn test<X>(a: X) -> X {
a
}
}
fn main() {
let a;
a = Foo::test::<_>(123);
let b;
b = Foo::test::<bool>(true);
let c;
c = Foo::test(456f32);
}
|