]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/issue-88287.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-88287.stderr
1 error[E0277]: the size for values of type `A` cannot be known at compilation time
2 --> $DIR/issue-88287.rs:35:9
3 |
4 LL | type SearchFutureTy<'f, A, B: 'f>
5 | - this type parameter needs to be `std::marker::Sized`
6 ...
7 LL | async move { todo!() }
8 | ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
9 |
10 note: required by a bound in `<T as SearchableResourceExt<Criteria>>`
11 --> $DIR/issue-88287.rs:25:6
12 |
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`
16 |
17 LL - A: SearchableResource<B> + ?Sized + 'f,
18 LL + A: SearchableResource<B> + 'f,
19 |
20 help: consider relaxing the implicit `Sized` restriction
21 |
22 LL | T: SearchableResource<Criteria> + ?Sized,
23 | ++++++++
24
25 error: aborting due to previous error
26
27 For more information about this error, try `rustc --explain E0277`.