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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
431 B
Plaintext
Raw Normal View History

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
|
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:
|
LL | use private::Future;
|
2017-08-03 11:50:06 +00:00
error: aborting due to previous error