| 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... |
| note: ...that is required by this bound |
| --> $DIR/regions-infer-bound-from-trait-self.rs:12:21 |
| | |
| LL | fn check_bound<'a,A:'a>(x: Inv<'a>, a: A) { } |
| | ^^ |
| |
| error: aborting due to previous error |
| |
| For more information about this error, try `rustc --explain E0309`. |