]>
Commit | Line | Data |
---|---|---|
3b2f2976 | 1 | error: the `wait` method cannot be invoked on a trait object |
487cf647 | 2 | --> $DIR/issue-35976.rs:20:9 |
3b2f2976 | 3 | | |
74b04a01 XL |
4 | LL | fn wait(&self) where Self: Sized; |
5 | | ----- this has a `Sized` requirement | |
6 | ... | |
0531ce1d | 7 | LL | arg.wait(); |
3b2f2976 | 8 | | ^^^^ |
487cf647 FG |
9 | | |
10 | help: another candidate was found in the following trait, perhaps add a `use` for it: | |
11 | | | |
353b0b11 | 12 | LL + use private::Future; |
487cf647 | 13 | | |
3b2f2976 | 14 | |
4b012472 | 15 | error: aborting due to 1 previous error |
3b2f2976 | 16 |