• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0726]: implicit elided lifetime not allowed here
2  --> tests/ui/lifetime-span.rs:12:6
3   |
412 | impl Trait for A {
5   |      ^^^^^- help: indicate the anonymous lifetime: `<'_>`
6   |
7   = note: assuming a `'static` lifetime...
8
9error[E0107]: this trait takes 0 lifetime arguments but 1 lifetime argument was supplied
10  --> tests/ui/lifetime-span.rs:32:10
11   |
1232 | impl<'r> Trait2<'r> for B {
13   |          ^^^^^^---- help: remove these generics
14   |          |
15   |          expected 0 lifetime arguments
16   |
17note: trait defined here, with 0 lifetime parameters
18  --> tests/ui/lifetime-span.rs:22:11
19   |
2022 | pub trait Trait2 {
21   |           ^^^^^^
22
23error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
24  --> tests/ui/lifetime-span.rs:13:14
25   |
268  |     async fn method(&'r self);
27   |              ---------------- lifetimes in impl do not match this method in trait
28...
2913 |     async fn method(&self) { }
30   |              ^^^^^^^^^^^^^ lifetimes do not match method in trait
31
32error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
33  --> tests/ui/lifetime-span.rs:18:14
34   |
358  |     async fn method(&'r self);
36   |              ---------------- lifetimes in impl do not match this method in trait
37...
3818 |     async fn method(&self) { }
39   |              ^^^^^^^^^^^^^ lifetimes do not match method in trait
40
41error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
42  --> tests/ui/lifetime-span.rs:33:14
43   |
4423 |     async fn method<'r>(&'r self);
45   |                    ---- lifetimes in impl do not match this method in trait
46...
4733 |     async fn method(&'r self) { }
48   |              ^^^^^^^^^^^^^^^^ lifetimes do not match method in trait
49