summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/regionck-2.stderr
blob: b0a4ed35d560973266a21c49da4590808f2a3ab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0308]: mismatched types
  --> $DIR/regionck-2.rs:12:12
   |
LL | fn test(_: Lexer::Cursor) {}
   |            ^^^^^^^^^^^^^ lifetime mismatch
   |
   = note: expected struct `Lexer<'static>`
              found struct `Lexer<'_>`
note: the anonymous lifetime defined here...
  --> $DIR/regionck-2.rs:12:12
   |
LL | fn test(_: Lexer::Cursor) {}
   |            ^^^^^
   = note: ...does not necessarily outlive the static lifetime

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.