]> git.proxmox.com Git - rustc.git/blame - tests/ui/impl-trait/in-trait/method-signature-matches.lt.stderr
New upstream version 1.75.0+dfsg1
[rustc.git] / tests / ui / impl-trait / in-trait / method-signature-matches.lt.stderr
CommitLineData
fe692bf9 1error[E0053]: method `early` has an incompatible type for trait
ed00b5ec 2 --> $DIR/method-signature-matches.rs:57:27
fe692bf9
FG
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`
ed00b5ec 9 | expected this type parameter
fe692bf9
FG
10 |
11note: type in trait
ed00b5ec 12 --> $DIR/method-signature-matches.rs:52:28
fe692bf9
FG
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`.