]> git.proxmox.com Git - rustc.git/blame - src/test/ui/compare-method/issue-90444.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / compare-method / issue-90444.stderr
CommitLineData
3c0e092e
XL
1error[E0053]: method `from` has an incompatible type for trait
2 --> $DIR/issue-90444.rs:3:16
3 |
4LL | 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
13error[E0053]: method `from` has an incompatible type for trait
14 --> $DIR/issue-90444.rs:11:16
15 |
16LL | 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
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0053`.