blob: 4d9a8d6eef9156bbda6c22542093104cd88c504f (
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.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`.
|