1 error[E0277]: the trait bound `for<'b> &'b S: Trait` is not satisfied
2 --> $DIR/imm-ref-trait-object-literal-bound-regions.rs:17:5
5 | ^^^^^^^^ the trait `for<'b> Trait` is not implemented for `&'b S`
7 = help: the following implementations were found:
9 note: required by a bound in `foo`
10 --> $DIR/imm-ref-trait-object-literal-bound-regions.rs:11:20
13 | --- required by a bound in this
15 LL | for<'b> &'b X: Trait,
16 | ^^^^^ required by this bound in `foo`
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0277`.