]> git.proxmox.com Git - rustc.git/blob - tests/ui/type-alias-impl-trait/issue-68368-non-defining-use.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / type-alias-impl-trait / issue-68368-non-defining-use.stderr
1 error[E0792]: expected generic type parameter, found `()`
2 --> $DIR/issue-68368-non-defining-use.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`.