blob: 766ee36c02be2662034d0c9e8402e79f6f8ff6fe [file] [log] [blame]
#![feature(type_alias_impl_trait)]
fn main() {}
trait Trait {}
type Underconstrained<T: Trait> = impl 'static;
//~^ ERROR: at least one trait must be specified
// no `Trait` bound
fn underconstrain<T>(_: T) -> Underconstrained<T> {
//~^ ERROR the trait bound `T: Trait`
unimplemented!()
}