rust/tests/ui/issues/issue-35976.unimported.stderr

17 lines
431 B
Plaintext
Raw Normal View History

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