]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-35976.stderr
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / issues / issue-35976.stderr
1 error: the `wait` method cannot be invoked on a trait object
2   --> $DIR/issue-35976.rs:14:9
3    |
4 LL |         fn wait(&self) where Self: Sized;
5    |                                    ----- this has a `Sized` requirement
6 ...
7 LL |     arg.wait();
8    |         ^^^^
9    |
10 help: another candidate was found in the following trait, perhaps add a `use` for it:
11    |
12 LL | use private::Future;
13    |
14
15 error: aborting due to previous error
16