about summary refs log tree commit diff
path: root/tests/ui/traits/next-solver/dont-canonicalize-re-error.stderr
blob: 867efd4a0e7b7bd1bde25287a4170ec7c178b87a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
error[E0261]: use of undeclared lifetime name `'missing`
  --> $DIR/dont-canonicalize-re-error.rs:27:26
   |
LL | impl<A: Sized> Constrain<'missing> for W<A> {}
   |                          ^^^^^^^^ undeclared lifetime
   |
help: consider introducing lifetime `'missing` here
   |
LL | impl<'missing, A: Sized> Constrain<'missing> for W<A> {}
   |      +++++++++

error[E0119]: conflicting implementations of trait `Tr<'_>` for type `W<_>`
  --> $DIR/dont-canonicalize-re-error.rs:23:1
   |
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<_>`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0119, E0261.
For more information about an error, try `rustc --explain E0119`.