summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-infer-bound-from-trait-self.stderr
blob: e88f79a3a8c54c2d5dbb0b6f35832528a9ebf1b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0309]: the parameter type `Self` may not live long enough
  --> $DIR/regions-infer-bound-from-trait-self.rs:46:9
   |
LL |         check_bound(x, self)
   |         ^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider adding an explicit lifetime bound `Self: 'a`...
   = note: ...so that the type `Self` will meet its required lifetime bounds

error: aborting due to previous error

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