2023-06-14 05:20:31 +00:00
|
|
|
error[E0053]: method `early` has an incompatible type for trait
|
2024-03-11 19:41:40 +00:00
|
|
|
--> $DIR/method-signature-matches.rs:55:27
|
2023-06-14 05:20:31 +00:00
|
|
|
|
|
|
|
|
LL | fn early<'late, T>(_: &'late ()) {}
|
|
|
|
| - ^^^^^^^^^
|
|
|
|
| | |
|
|
|
|
| | expected type parameter `T`, found `()`
|
2023-06-30 00:27:03 +00:00
|
|
|
| | help: change the parameter type to match the trait: `&T`
|
2023-10-18 22:10:48 +00:00
|
|
|
| expected this type parameter
|
2023-06-14 05:20:31 +00:00
|
|
|
|
|
|
|
|
note: type in trait
|
2024-03-11 19:41:40 +00:00
|
|
|
--> $DIR/method-signature-matches.rs:50:28
|
2023-06-14 05:20:31 +00:00
|
|
|
|
|
|
|
|
LL | fn early<'early, T>(x: &'early T) -> impl Sized;
|
|
|
|
| ^^^^^^^^^
|
2023-06-30 00:27:03 +00:00
|
|
|
= note: expected signature `fn(&T)`
|
|
|
|
found signature `fn(&'late ())`
|
2023-06-14 05:20:31 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2023-06-14 05:20:31 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0053`.
|