1 error: at least one trait must be specified
2 --> $DIR/generic_underconstrained2.rs:5:45
4 LL | type Underconstrained<T: std::fmt::Debug> = impl 'static;
7 error: at least one trait must be specified
8 --> $DIR/generic_underconstrained2.rs:14:46
10 LL | type Underconstrained2<T: std::fmt::Debug> = impl 'static;
13 error[E0277]: `U` doesn't implement `std::fmt::Debug`
14 --> $DIR/generic_underconstrained2.rs:5:1
16 LL | type Underconstrained<T: std::fmt::Debug> = impl 'static;
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `U` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
19 LL | fn underconstrained<U>(_: U) -> Underconstrained<U> {
20 | - help: consider restricting this bound: `U: std::fmt::Debug`
22 = help: the trait `std::fmt::Debug` is not implemented for `U`
23 = note: the return type of a function must have a statically known size
25 error[E0277]: `V` doesn't implement `std::fmt::Debug`
26 --> $DIR/generic_underconstrained2.rs:14:1
28 LL | type Underconstrained2<T: std::fmt::Debug> = impl 'static;
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `V` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
31 LL | fn underconstrained2<U, V>(_: U, _: V) -> Underconstrained2<V> {
32 | - help: consider restricting this bound: `V: std::fmt::Debug`
34 = help: the trait `std::fmt::Debug` is not implemented for `V`
35 = note: the return type of a function must have a statically known size
37 error: aborting due to 4 previous errors
39 For more information about this error, try `rustc --explain E0277`.