1 error: the `wait` method cannot be invoked on a trait object
2 --> $DIR/issue-35976.rs:14:9
4 LL | fn wait(&self) where Self: Sized;
5 | ----- this has a `Sized` requirement
10 help: another candidate was found in the following trait, perhaps add a `use` for it:
12 LL | use private::Future;
15 error: aborting due to previous error