2024-03-22 16:35:44 -04:00
|
|
|
error[E0261]: use of undeclared lifetime name `'missing`
|
2025-06-27 05:34:08 +00:00
|
|
|
--> $DIR/dont-canonicalize-re-error.rs:27:26
|
2024-03-22 16:35:44 -04:00
|
|
|
|
|
|
|
|
|
LL | impl<A: Sized> Constrain<'missing> for W<A> {}
|
2025-06-24 18:59:29 +00:00
|
|
|
| ^^^^^^^^ undeclared lifetime
|
|
|
|
|
|
|
|
|
|
|
help: consider introducing lifetime `'missing` here
|
|
|
|
|
|
|
|
|
|
|
LL | impl<'missing, A: Sized> Constrain<'missing> for W<A> {}
|
|
|
|
|
| +++++++++
|
2024-03-22 16:35:44 -04:00
|
|
|
|
|
|
|
|
error[E0119]: conflicting implementations of trait `Tr<'_>` for type `W<_>`
|
2025-06-27 05:34:08 +00:00
|
|
|
--> $DIR/dont-canonicalize-re-error.rs:23:1
|
2024-03-22 16:35:44 -04:00
|
|
|
|
|
2025-06-27 05:34:08 +00:00
|
|
|
LL | impl<'a, A> Tr<'a> for W<A> {}
|
|
|
|
|
| --------------------------- first implementation here
|
|
|
|
|
LL | struct W<A>(A);
|
|
|
|
|
LL | impl<'a, A> Tr<'a> for A where A: Constrain<'a> {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `W<_>`
|
2024-03-22 16:35:44 -04:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
|
|
Some errors have detailed explanations: E0119, E0261.
|
|
|
|
|
For more information about an error, try `rustc --explain E0119`.
|