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

warning: 1 warning emitted