fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB27 linesraw
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
8   |                help: change the parameter type to match the trait: `for<'a> fn((), (), &'a ())`
9   |
10   = note: expected signature `fn(for<'a> fn((), (), &'a ())) -> A`
11              found signature `fn(for<'a> fn((), (), &'a mut ())) -> A`
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 signature `fn(fn((), (), u32)) -> B`
23              found signature `fn(fn((), (), u64)) -> B`
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0053`.