]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/issue-68368-non-defining-use-2.stderr
Rollup merge of #106946 - dtolnay:hashlinecolumn, r=m-ou-se
[rust.git] / tests / ui / type-alias-impl-trait / issue-68368-non-defining-use-2.stderr
1 error[E0792]: expected generic type parameter, found `()`
2   --> $DIR/issue-68368-non-defining-use-2.rs:9:29
3    |
4 LL | type Alias<'a, U> = impl Trait<U>;
5    |                - this generic parameter must be used with a generic type parameter
6 LL |
7 LL | fn f<'a>() -> Alias<'a, ()> {}
8    |                             ^^
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0792`.