about summary refs log tree commit diff
path: root/tests/ui/impl-trait/issues/fuzzer-ice-issue-112201.stderr
blob: f507ad385a171878801c7e2cd854f57de194d15b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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`.