1 error: at least one trait must be specified
2 --> $DIR/generic_underconstrained.rs:6:35
4 LL | type Underconstrained<T: Trait> = impl 'static;
7 error[E0277]: the trait bound `T: Trait` is not satisfied
8 --> $DIR/generic_underconstrained.rs:6:1
10 LL | type Underconstrained<T: Trait> = impl 'static;
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `T`
13 LL | fn underconstrain<T>(_: T) -> Underconstrained<T> {
14 | - help: consider restricting this bound: `T: Trait`
16 = note: the return type of a function must have a statically known size
18 error: aborting due to 2 previous errors
20 For more information about this error, try `rustc --explain E0277`.