2017-08-03 13:50:06 +02:00
|
|
|
error: the `wait` method cannot be invoked on a trait object
|
2022-12-01 23:53:36 -05:00
|
|
|
--> $DIR/issue-35976.rs:20:9
|
2017-08-03 13:50:06 +02:00
|
|
|
|
|
2020-01-30 20:12:46 -08:00
|
|
|
LL | fn wait(&self) where Self: Sized;
|
|
|
|
| ----- this has a `Sized` requirement
|
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | arg.wait();
|
2017-08-03 13:50:06 +02:00
|
|
|
| ^^^^
|
2022-12-01 23:53:36 -05: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-01 23:53:36 -05:00
|
|
|
|
|
2017-08-03 13:50:06 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|