fn main() {}
type OneTy<T> = impl Debug;
-//~^ ERROR could not find defining uses
+
type OneLifetime<'a> = impl Debug;
-//~^ ERROR could not find defining uses
+
type OneConst<const X: usize> = impl Debug;
-//~^ ERROR could not find defining uses
+
// Not defining uses, because they doesn't define *all* possible generics.
fn concrete_ty() -> OneTy<u32> {
- //~^ ERROR non-defining opaque type use in defining scope
5u32
+ //~^ ERROR non-defining opaque type use in defining scope
}
fn concrete_lifetime() -> OneLifetime<'static> {
- //~^ ERROR non-defining opaque type use in defining scope
6u32
+ //~^ ERROR non-defining opaque type use in defining scope
}
fn concrete_const() -> OneConst<{ 123 }> {
- //~^ ERROR non-defining opaque type use in defining scope
7u32
+ //~^ ERROR non-defining opaque type use in defining scope
}