]>
Commit | Line | Data |
---|---|---|
3c0e092e XL |
1 | pub struct A; |
2 | impl From<fn((), (), &())> for A { | |
3 | fn from(_: fn((), (), &mut ())) -> Self { | |
4 | //~^ error: method `from` has an incompatible type for trait | |
5 | loop {} | |
6 | } | |
7 | } | |
8 | ||
9 | pub struct B; | |
10 | impl From<fn((), (), u32)> for B { | |
11 | fn from(_: fn((), (), u64)) -> Self { | |
12 | //~^ error: method `from` has an incompatible type for trait | |
13 | loop {} | |
14 | } | |
15 | } | |
16 | ||
17 | fn main() {} |