1 error[E0277]: the trait bound `U: From<T>` is not satisfied
2 --> $DIR/issue-53092.rs:14:5
5 | ^^^^^^^^^^^^ the trait `From<T>` is not implemented for `U`
7 note: required by a bound in `make_bug`
8 --> $DIR/issue-53092.rs:13:19
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`
14 LL | type Bug<T, U: std::convert::From<T>> = impl Fn(T) -> U + Copy;
15 | +++++++++++++++++++++++
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0277`.