summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/bad-item-bound-within-rpitit-2.stderr
blob: 3a1f8f90837479aa308c2a870281a2dcd8593cea (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
25
26
27
28
29
30
31
32
33
error[E0261]: use of undeclared lifetime name `'a`
  --> $DIR/bad-item-bound-within-rpitit-2.rs:6:20
   |
LL |     fn bar<'other: 'a>() -> impl Sized + 'a {}
   |                    ^^ undeclared lifetime
   |
help: consider introducing lifetime `'a` here
   |
LL |     fn bar<'a, 'other: 'a>() -> impl Sized + 'a {}
   |            +++
help: consider introducing lifetime `'a` here
   |
LL | trait Foo<'a> {
   |          ++++

error[E0261]: use of undeclared lifetime name `'a`
  --> $DIR/bad-item-bound-within-rpitit-2.rs:6:42
   |
LL |     fn bar<'other: 'a>() -> impl Sized + 'a {}
   |                                          ^^ undeclared lifetime
   |
help: consider introducing lifetime `'a` here
   |
LL |     fn bar<'a, 'other: 'a>() -> impl Sized + 'a {}
   |            +++
help: consider introducing lifetime `'a` here
   |
LL | trait Foo<'a> {
   |          ++++

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0261`.