fork/rust

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

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

master
622 B20 linesraw
1error[E0053]: method `owo` has an incompatible type for trait
2  --> $DIR/method-signature-matches.rs:14:15
3   |
4LL |     fn owo(_: u8) {}
5   |               ^^
6   |               |
7   |               expected `()`, found `u8`
8   |               help: change the parameter type to match the trait: `()`
9   |
10note: type in trait
11  --> $DIR/method-signature-matches.rs:9:15
12   |
13LL |     fn owo(x: ()) -> impl Sized;
14   |               ^^
15   = note: expected signature `fn(())`
16              found signature `fn(u8)`
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0053`.