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