aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/lifetime-span.stderr
blob: aad25a727ae2f85accccd3999b9fadcc2f7dd8c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
error[E0726]: implicit elided lifetime not allowed here
  --> tests/ui/lifetime-span.rs:12:6
   |
12 | impl Trait for A {
   |      ^^^^^- help: indicate the anonymous lifetime: `<'_>`
   |
   = note: assuming a `'static` lifetime...

error[E0107]: this trait takes 0 lifetime arguments but 1 lifetime argument was supplied
  --> tests/ui/lifetime-span.rs:32:10
   |
32 | impl<'r> Trait2<'r> for B {
   |          ^^^^^^---- help: remove these generics
   |          |
   |          expected 0 lifetime arguments
   |
note: trait defined here, with 0 lifetime parameters
  --> tests/ui/lifetime-span.rs:22:11
   |
22 | pub trait Trait2 {
   |           ^^^^^^

error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
  --> tests/ui/lifetime-span.rs:13:14
   |
8  |     async fn method(&'r self);
   |              ---------------- lifetimes in impl do not match this method in trait
...
13 |     async fn method(&self) { }
   |              ^^^^^^^^^^^^^ lifetimes do not match method in trait

error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
  --> tests/ui/lifetime-span.rs:18:14
   |
8  |     async fn method(&'r self);
   |              ---------------- lifetimes in impl do not match this method in trait
...
18 |     async fn method(&self) { }
   |              ^^^^^^^^^^^^^ lifetimes do not match method in trait

error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
  --> tests/ui/lifetime-span.rs:33:14
   |
23 |     async fn method<'r>(&'r self);
   |                    ---- lifetimes in impl do not match this method in trait
...
33 |     async fn method(&'r self) { }
   |              ^^^^^^^^^^^^^^^^ lifetimes do not match method in trait