]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/imm-ref-trait-object-literal-bound-regions.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / imm-ref-trait-object-literal-bound-regions.stderr
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
3    |
4 LL |     foo::<S>(s);
5    |     ^^^^^^^^ the trait `for<'b> Trait` is not implemented for `&'b S`
6    |
7    = help: the following implementations were found:
8              <&'a mut S as Trait>
9 note: required by a bound in `foo`
10   --> $DIR/imm-ref-trait-object-literal-bound-regions.rs:11:20
11    |
12 LL | fn foo<X>(_: X)
13    |    --- required by a bound in this
14 LL | where
15 LL |     for<'b> &'b X: Trait,
16    |                    ^^^^^ required by this bound in `foo`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.