blob: 3ec19e206008df9ab4e0191bb2ab52709625bc2d (
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:10:15
|
LL | type Alias<'a, U> = impl Trait<U>;
| - this generic parameter must be used with a generic type parameter
...
LL | fn f<'a>() -> Alias<'a, ()> {}
| ^^^^^^^^^^^^^
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0792`.
|