1 #![feature(type_alias_impl_trait)]
7 type OneTy<T> = impl Debug;
9 type OneLifetime<'a> = impl Debug;
11 type OneConst<const X: usize> = impl Debug;
13 // Not defining uses, because they doesn't define *all* possible generics.
15 fn concrete_ty() -> OneTy<u32> {
17 //~^ ERROR expected generic type parameter, found `u32`
20 fn concrete_lifetime() -> OneLifetime<'static> {
22 //~^ ERROR expected generic lifetime parameter, found `'static`
25 fn concrete_const() -> OneConst<{ 123 }> {
27 //~^ ERROR expected generic constant parameter, found `123`