]> git.lizzy.rs Git - rust.git/blob - src/test/ui/compare-method/issue-90444.stderr
merge rustc history
[rust.git] / src / test / ui / compare-method / issue-90444.stderr
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
8    |                help: change the parameter type to match the trait: `for<'r> fn((), (), &'r ())`
9    |
10    = note: expected fn pointer `fn(for<'r> fn((), (), &'r ())) -> A`
11               found fn pointer `fn(for<'r> fn((), (), &'r mut ())) -> A`
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`.