fork/rust

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

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

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