]>
Commit | Line | Data |
---|---|---|
0731742a | 1 | #![feature(fn_traits)] |
223e47cc | 2 | |
8bb4bdeb XL |
3 | struct Test; |
4 | ||
5 | impl FnOnce<(u32, u32)> for Test { | |
0731742a | 6 | //~^ ERROR the precise format of `Fn`-family traits' type parameters is subject to change |
f9f354fc | 7 | //~| ERROR manual implementations of `FnOnce` are experimental |
8bb4bdeb XL |
8 | type Output = u32; |
9 | ||
10 | extern "rust-call" fn call_once(self, (a, b): (u32, u32)) -> u32 { | |
11 | a + b | |
12 | } | |
48663c56 | 13 | //~^^^ ERROR rust-call ABI is subject to change |
a7813a04 XL |
14 | } |
15 | ||
16 | fn main() { | |
8bb4bdeb | 17 | assert_eq!(Test(1u32, 2u32), 3u32); |
54a0048b | 18 | } |