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