]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/generic_underconstrained.rs
Move /src/test to /tests
[rust.git] / tests / ui / type-alias-impl-trait / generic_underconstrained.rs
1 #![feature(type_alias_impl_trait)]
2
3 fn main() {}
4
5 trait Trait {}
6 type Underconstrained<T: Trait> = impl Send;
7
8 // no `Trait` bound
9 fn underconstrain<T>(_: T) -> Underconstrained<T> {
10     //~^ ERROR the trait bound `T: Trait`
11     unimplemented!()
12 }