]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/generic_underconstrained.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[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 }