summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/erase-error-in-mir-drop-tracking.stderr
blob: 53abe3dc9521d2d6c31af99aa8e46369f3061fc0 (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 `'a`
  --> $DIR/erase-error-in-mir-drop-tracking.rs:11:46
   |
LL |     fn connect(&'_ self) -> Self::Connecting<'a>;
   |                                              ^^ undeclared lifetime
   |
help: consider introducing lifetime `'a` here
   |
LL |     fn connect<'a>(&'_ self) -> Self::Connecting<'a>;
   |               ++++
help: consider introducing lifetime `'a` here
   |
LL | trait Client<'a> {
   |             ++++

error: `C` does not live long enough
  --> $DIR/erase-error-in-mir-drop-tracking.rs:19:5
   |
LL |     async move { c.connect().await }
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

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