2017-08-03 11:50:06 +00:00
|
|
|
error: the `wait` method cannot be invoked on a trait object
|
2022-12-02 04:53:36 +00:00
|
|
|
--> $DIR/issue-35976.rs:20:9
|
2017-08-03 11:50:06 +00:00
|
|
|
|
|
2020-01-31 04:12:46 +00:00
|
|
|
LL | fn wait(&self) where Self: Sized;
|
|
|
|
| ----- this has a `Sized` requirement
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | arg.wait();
|
2017-08-03 11:50:06 +00:00
|
|
|
| ^^^^
|
2022-12-02 04:53:36 +00:00
|
|
|
|
|
|
|
|
help: another candidate was found in the following trait, perhaps add a `use` for it:
|
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use private::Future;
|
2022-12-02 04:53:36 +00:00
|
|
|
|
|
2017-08-03 11:50:06 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|