blob: 271743a4010c8faa841a82027d8520e96a019546 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
error[E0792]: expected generic type parameter, found `()`
--> $DIR/issue-68368-non-defining-use-2.rs:9:29
|
LL | type Alias<'a, U> = impl Trait<U>;
| - this generic parameter must be used with a generic type parameter
LL |
LL | fn f<'a>() -> Alias<'a, ()> {}
| ^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0792`.
|