1 #![feature(type_alias_impl_trait)]
7 type OneTy<T> = impl Debug;
8 //~^ ERROR could not find defining uses
9 type OneLifetime<'a> = impl Debug;
10 //~^ ERROR could not find defining uses
11 type OneConst<const X: usize> = impl Debug;
12 //~^ ERROR could not find defining uses
14 // Not defining uses, because they doesn't define *all* possible generics.
16 fn concrete_ty() -> OneTy<u32> {
17 //~^ ERROR non-defining opaque type use in defining scope
21 fn concrete_lifetime() -> OneLifetime<'static> {
22 //~^ ERROR non-defining opaque type use in defining scope
26 fn concrete_const() -> OneConst<{ 123 }> {
27 //~^ ERROR non-defining opaque type use in defining scope