• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0726]: implicit elided lifetime not allowed here
2  --> $DIR/lifetime-span.rs:12:6
3   |
412 | impl Trait for A {
5   |      ^^^^^- help: indicate the anonymous lifetime: `<'_>`
6
7error[E0107]: this trait takes 0 lifetime arguments but 1 lifetime argument was supplied
8  --> $DIR/lifetime-span.rs:32:10
9   |
1032 | impl<'r> Trait2<'r> for B {
11   |          ^^^^^^---- help: remove these generics
12   |          |
13   |          expected 0 lifetime arguments
14   |
15note: trait defined here, with 0 lifetime parameters
16  --> $DIR/lifetime-span.rs:22:11
17   |
1822 | pub trait Trait2 {
19   |           ^^^^^^
20
21error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
22  --> $DIR/lifetime-span.rs:13:14
23   |
248  |     async fn method(&'r self);
25   |              ---------------- lifetimes in impl do not match this method in trait
26...
2713 |     async fn method(&self) { }
28   |              ^^^^^^^^^^^^^ lifetimes do not match method in trait
29
30error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
31  --> $DIR/lifetime-span.rs:18:14
32   |
338  |     async fn method(&'r self);
34   |              ---------------- lifetimes in impl do not match this method in trait
35...
3618 |     async fn method(&self) { }
37   |              ^^^^^^^^^^^^^ lifetimes do not match method in trait
38
39error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
40  --> $DIR/lifetime-span.rs:33:14
41   |
4223 |     async fn method<'r>(&'r self);
43   |                    ---- lifetimes in impl do not match this method in trait
44...
4533 |     async fn method(&'r self) { }
46   |              ^^^^^^^^^^^^^^^^ lifetimes do not match method in trait
47