error: non-defining opaque type use in defining scope
- --> $DIR/issue-68368-non-defining-use-2.rs:9:15
+ --> $DIR/issue-68368-non-defining-use-2.rs:9:29
|
LL | fn f<'a>() -> Alias<'a, ()> {}
- | ^^^^^^^^^^^^^
+ | ^^
|
note: used non-generic type `()` for generic parameter
--> $DIR/issue-68368-non-defining-use-2.rs:7:16
LL | type Alias<'a, U> = impl Trait<U>;
| ^
-error: could not find defining uses
- --> $DIR/issue-68368-non-defining-use-2.rs:7:21
- |
-LL | type Alias<'a, U> = impl Trait<U>;
- | ^^^^^^^^^^^^^
-
-error: aborting due to 2 previous errors
+error: aborting due to previous error