• 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   |      ^^^^^ 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 these 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