blob: aad25a727ae2f85accccd3999b9fadcc2f7dd8c6 [file] [log] [blame]
Joel Galenson5448f372021-04-01 15:10:30 -07001error[E0726]: implicit elided lifetime not allowed here
David LeGareffb07e72022-03-01 18:48:27 +00002 --> tests/ui/lifetime-span.rs:12:6
Joel Galenson5448f372021-04-01 15:10:30 -07003 |
412 | impl Trait for A {
5 | ^^^^^- help: indicate the anonymous lifetime: `<'_>`
Joel Galensonaa9cbeb2021-08-09 10:24:16 -07006 |
7 = note: assuming a `'static` lifetime...
Joel Galenson5448f372021-04-01 15:10:30 -07008
9error[E0107]: this trait takes 0 lifetime arguments but 1 lifetime argument was supplied
David LeGareffb07e72022-03-01 18:48:27 +000010 --> tests/ui/lifetime-span.rs:32:10
Joel Galenson5448f372021-04-01 15:10:30 -070011 |
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
David LeGareffb07e72022-03-01 18:48:27 +000018 --> tests/ui/lifetime-span.rs:22:11
Joel Galenson5448f372021-04-01 15:10:30 -070019 |
2022 | pub trait Trait2 {
21 | ^^^^^^
22
23error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
David LeGareffb07e72022-03-01 18:48:27 +000024 --> tests/ui/lifetime-span.rs:13:14
Joel Galenson5448f372021-04-01 15:10:30 -070025 |
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
David LeGareffb07e72022-03-01 18:48:27 +000033 --> tests/ui/lifetime-span.rs:18:14
Joel Galenson5448f372021-04-01 15:10:30 -070034 |
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
David LeGareffb07e72022-03-01 18:48:27 +000042 --> tests/ui/lifetime-span.rs:33:14
Joel Galenson5448f372021-04-01 15:10:30 -070043 |
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