error: at least one trait must be specified --> $DIR/generic_underconstrained2.rs:5:45 | LL | type Underconstrained = impl 'static; | ^^^^^^^^^^^^ error: at least one trait must be specified --> $DIR/generic_underconstrained2.rs:14:46 | LL | type Underconstrained2 = impl 'static; | ^^^^^^^^^^^^ error[E0277]: `U` doesn't implement `Debug` --> $DIR/generic_underconstrained2.rs:9:33 | LL | type Underconstrained = impl 'static; | --------------- required by this bound in `Underconstrained` ... LL | fn underconstrained(_: U) -> Underconstrained { | ^^^^^^^^^^^^^^^^^^^ `U` cannot be formatted using `{:?}` because it doesn't implement `Debug` | help: consider restricting type parameter `U` | LL | fn underconstrained(_: U) -> Underconstrained { | +++++++++++++++++ error[E0277]: `V` doesn't implement `Debug` --> $DIR/generic_underconstrained2.rs:18:43 | LL | type Underconstrained2 = impl 'static; | --------------- required by this bound in `Underconstrained2` ... LL | fn underconstrained2(_: U, _: V) -> Underconstrained2 { | ^^^^^^^^^^^^^^^^^^^^ `V` cannot be formatted using `{:?}` because it doesn't implement `Debug` | help: consider restricting type parameter `V` | LL | fn underconstrained2(_: U, _: V) -> Underconstrained2 { | +++++++++++++++++ error: aborting due to 4 previous errors For more information about this error, try `rustc --explain E0277`.