2024-03-06 23:49:05 +01:00
|
|
|
error: lifetimes are not permitted in this context
|
|
|
|
|
--> $DIR/recover-assoc-lifetime-constraint.rs:3:18
|
2020-03-22 06:09:24 +01:00
|
|
|
|
|
|
|
|
|
LL | bar::<Item = 'a>();
|
2024-03-06 23:49:05 +01:00
|
|
|
| -------^^
|
|
|
|
|
| | |
|
|
|
|
|
| | lifetime is not allowed here
|
|
|
|
|
| this introduces an associated item binding
|
2020-03-22 06:09:24 +01:00
|
|
|
|
|
2024-03-06 23:49:05 +01:00
|
|
|
= help: if you meant to specify a trait object, write `dyn /* Trait */ + 'a`
|
|
|
|
|
help: you might have meant to write a bound here
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - bar::<Item = 'a>();
|
|
|
|
|
LL + bar::<Item: 'a>();
|
|
|
|
|
|
|
2020-03-22 06:09:24 +01:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-03-22 06:09:24 +01:00
|
|
|
|