]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/nested-return-type2.stderr
Rollup merge of #106799 - scottmcm:remove-unused-generics, r=cuviper
[rust.git] / tests / ui / impl-trait / nested-return-type2.stderr
1 warning: opaque type `impl Trait<Assoc = impl Send>` does not satisfy its associated type bounds
2   --> $DIR/nested-return-type2.rs:25:24
3    |
4 LL |     type Assoc: Duh;
5    |                 --- this associated type bound is unsatisfied for `impl Send`
6 ...
7 LL | fn foo() -> impl Trait<Assoc = impl Send> {
8    |                        ^^^^^^^^^^^^^^^^^
9    |
10    = note: `#[warn(opaque_hidden_inferred_bound)]` on by default
11 help: add this bound
12    |
13 LL | fn foo() -> impl Trait<Assoc = impl Send + Duh> {
14    |                                          +++++
15
16 warning: 1 warning emitted
17