1error[E0726]: implicit elided lifetime not allowed here 2 --> tests/ui/lifetime-span.rs:12:6 3 | 412 | impl Trait for A { 5 | ^^^^^ expected lifetime parameter 6 | 7help: indicate the anonymous lifetime 8 | 912 | impl Trait<'_> for A { 10 | ++++ 11 12error[E0107]: trait takes 0 lifetime arguments but 1 lifetime argument was supplied 13 --> tests/ui/lifetime-span.rs:32:10 14 | 1532 | impl<'r> Trait2<'r> for B { 16 | ^^^^^^---- help: remove the unnecessary generics 17 | | 18 | expected 0 lifetime arguments 19 | 20note: trait defined here, with 0 lifetime parameters 21 --> tests/ui/lifetime-span.rs:22:11 22 | 2322 | pub trait Trait2 { 24 | ^^^^^^ 25 26error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration 27 --> tests/ui/lifetime-span.rs:33:14 28 | 2923 | async fn method<'r>(&'r self); 30 | ---- lifetimes in impl do not match this method in trait 31... 3233 | async fn method(&'r self) {} 33 | ^^^^^^^^^^^^^^^^ lifetimes do not match method in trait 34