Files
rust/tests/ui/impl-trait/issues/fuzzer-ice-issue-112201.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
672 B
Plaintext
Raw Normal View History

2025-04-01 23:48:41 +02:00
error[E0792]: expected generic type parameter, found `impl Sized`
--> $DIR/fuzzer-ice-issue-112201.rs:11:5
|
LL | fn repeat_helper<T>(x: T) -> impl Sized {
| - this generic parameter must be used with a generic type parameter
LL | return x;
LL | repeat_helper(wrap(x))
| ^^^^^^^^^^^^^^^^^^^^^^
error: type parameter `T` is part of concrete type but not used in parameter list for the `impl Trait` type alias
--> $DIR/fuzzer-ice-issue-112201.rs:11:5
|
LL | repeat_helper(wrap(x))
| ^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0792`.