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