]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/future.stderr
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / type-alias-impl-trait / future.stderr
1 error[E0277]: the trait bound `B: Bar` is not satisfied
2   --> $DIR/future.rs:15:5
3    |
4 LL |     async move { bar.bar() }
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bar` is not implemented for `B`
6    |
7 note: required by a bound in `foo`
8   --> $DIR/future.rs:14:11
9    |
10 LL | fn foo<B: Bar>(bar: B) -> FooFuture<B> {
11    |           ^^^ required by this bound in `foo`
12 help: consider restricting type parameter `B`
13    |
14 LL | type FooFuture<B: Bar> = impl Future<Output = ()>;
15    |                 +++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.