fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `for<'b> &'b S: Trait` is not satisfied 2 --> $DIR/imm-ref-trait-object-literal-bound-regions.rs:17:14 3 | 4LL | foo::<S>(s); 5 | -------- ^ the trait `for<'b> Trait` is not implemented for `&'b S` 6 | | 7 | required by a bound introduced by this call 8 | 9 = help: the trait `Trait` is implemented for `&'a mut S` 10 = note: `for<'b> Trait` is implemented for `&'b mut S`, but not for `&'b S` 11note: required by a bound in `foo` 12 --> $DIR/imm-ref-trait-object-literal-bound-regions.rs:11:20 13 | 14LL | fn foo<X>(_: X) 15 | --- required by a bound in this function 16LL | where 17LL | for<'b> &'b X: Trait, 18 | ^^^^^ required by this bound in `foo` 19 20error: aborting due to previous error 21 22For more information about this error, try `rustc --explain E0277`.