1 error[E0277]: the size for values of type `A` cannot be known at compilation time
2 --> $DIR/issue-88287.rs:35:9
4 LL | type SearchFutureTy<'f, A, B: 'f>
5 | - this type parameter needs to be `std::marker::Sized`
7 LL | async move { todo!() }
8 | ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
10 note: required by a bound in `<T as SearchableResourceExt<Criteria>>`
11 --> $DIR/issue-88287.rs:25:6
13 LL | impl<T, Criteria> SearchableResourceExt<Criteria> for T
14 | ^ required by this bound in `<T as SearchableResourceExt<Criteria>>`
15 help: consider removing the `?Sized` bound to make the type parameter `Sized`
17 LL - A: SearchableResource<B> + ?Sized + 'f,
18 LL + A: SearchableResource<B> + 'f,
20 help: consider relaxing the implicit `Sized` restriction
22 LL | T: SearchableResource<Criteria> + ?Sized,
25 error: aborting due to previous error
27 For more information about this error, try `rustc --explain E0277`.