1 error: at least one trait must be specified
2 --> $DIR/generic_underconstrained.rs:9:35
4 LL | type Underconstrained<T: Trait> = impl 'static;
7 warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
8 --> $DIR/generic_underconstrained.rs:3:32
10 LL | #![cfg_attr(full_tait, feature(type_alias_impl_trait))]
11 | ^^^^^^^^^^^^^^^^^^^^^
13 = note: `#[warn(incomplete_features)]` on by default
14 = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
16 error[E0277]: the trait bound `T: Trait` is not satisfied
17 --> $DIR/generic_underconstrained.rs:13:31
19 LL | type Underconstrained<T: Trait> = impl 'static;
20 | ----- required by this bound in `Underconstrained`
22 LL | fn underconstrain<T>(_: T) -> Underconstrained<T> {
23 | ^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `T`
25 help: consider restricting type parameter `T`
27 LL | fn underconstrain<T: Trait>(_: T) -> Underconstrained<T> {
30 error: aborting due to 2 previous errors; 1 warning emitted
32 For more information about this error, try `rustc --explain E0277`.