summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/nested-return-type2.stderr
blob: 09ad3bd05c1b3dda20e4842d09f3186cde6d8249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
warning: opaque type `impl Trait<Assoc = impl Send>` does not satisfy its associated type bounds
  --> $DIR/nested-return-type2.rs:28:24
   |
LL |     type Assoc: Duh;
   |                 --- this associated type bound is unsatisfied for `impl Send`
...
LL | fn foo() -> impl Trait<Assoc = impl Send> {
   |                        ^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(opaque_hidden_inferred_bound)]` on by default
help: add this bound
   |
LL | fn foo() -> impl Trait<Assoc = impl Send + Duh> {
   |                                          +++++

warning: 1 warning emitted