]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/issue-53092.stderr
Rollup merge of #105795 - nicholasbishop:bishop-stabilize-efiapi, r=joshtriplett
[rust.git] / tests / ui / type-alias-impl-trait / issue-53092.stderr
1 error[E0277]: the trait bound `U: From<T>` is not satisfied
2   --> $DIR/issue-53092.rs:14:5
3    |
4 LL |     |x| x.into()
5    |     ^^^^^^^^^^^^ the trait `From<T>` is not implemented for `U`
6    |
7 note: required by a bound in `make_bug`
8   --> $DIR/issue-53092.rs:13:19
9    |
10 LL | fn make_bug<T, U: From<T>>() -> Bug<T, U> {
11    |                   ^^^^^^^ required by this bound in `make_bug`
12 help: consider restricting type parameter `U`
13    |
14 LL | type Bug<T, U: std::convert::From<T>> = impl Fn(T) -> U + Copy;
15    |              +++++++++++++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.