]>
Commit | Line | Data |
---|---|---|
3c0e092e XL |
1 | error[E0053]: method `from` has an incompatible type for trait |
2 | --> $DIR/issue-90444.rs:3:16 | |
3 | | | |
4 | LL | fn from(_: fn((), (), &mut ())) -> Self { | |
5 | | ^^^^^^^^^^^^^^^^^^^ | |
6 | | | | |
7 | | types differ in mutability | |
2b03887a | 8 | | help: change the parameter type to match the trait: `for<'a> fn((), (), &'a ())` |
3c0e092e | 9 | | |
2b03887a FG |
10 | = note: expected fn pointer `fn(for<'a> fn((), (), &'a ())) -> A` |
11 | found fn pointer `fn(for<'a> fn((), (), &'a mut ())) -> A` | |
3c0e092e XL |
12 | |
13 | error[E0053]: method `from` has an incompatible type for trait | |
14 | --> $DIR/issue-90444.rs:11:16 | |
15 | | | |
16 | LL | fn from(_: fn((), (), u64)) -> Self { | |
17 | | ^^^^^^^^^^^^^^^ | |
18 | | | | |
19 | | expected `u32`, found `u64` | |
20 | | help: change the parameter type to match the trait: `fn((), (), u32)` | |
21 | | | |
22 | = note: expected fn pointer `fn(fn((), (), u32)) -> B` | |
23 | found fn pointer `fn(fn((), (), u64)) -> B` | |
24 | ||
25 | error: aborting due to 2 previous errors | |
26 | ||
27 | For more information about this error, try `rustc --explain E0053`. |