File: lifetime-span.stderr

package info (click to toggle)
rust-async-trait 0.1.56-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 316 kB
  • sloc: makefile: 2
file content (25 lines) | stat: -rw-r--r-- 732 bytes parent folder | download | duplicates (5)
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
error[E0726]: implicit elided lifetime not allowed here
  --> tests/ui/lifetime-span.rs:12:6
   |
12 | impl Trait for A {
   |      ^^^^^ expected lifetime parameter
   |
   = note: assuming a `'static` lifetime...
help: indicate the anonymous lifetime
   |
12 | impl Trait<'_> for A {
   |           ++++

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 {
   |           ^^^^^^