mirror of https://github.com/rust-lang/rust.git
18 lines
686 B
Plaintext
18 lines
686 B
Plaintext
error[E0792]: expected generic type parameter, found `impl Foo`
|
|
--> $DIR/double-wrap-with-defining-use.rs:7:26
|
|
|
|
|
LL | fn a(x: impl Foo) -> impl Foo {
|
|
| -------- this generic parameter must be used with a generic type parameter
|
|
LL | if true { x } else { a(a(x)) }
|
|
| ^^^^^^^
|
|
|
|
error: type parameter `impl Foo` is part of concrete type but not used in parameter list for the `impl Trait` type alias
|
|
--> $DIR/double-wrap-with-defining-use.rs:7:26
|
|
|
|
|
LL | if true { x } else { a(a(x)) }
|
|
| ^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0792`.
|