-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #105164 - compiler-errors:revert-import-filter, r=est…
…ebank Restore `use` suggestion for `dyn` method call requiring `Sized` Add the suggestion back that I accidentally removed in 88f2140 because I didn't understand that suggestion was actually useful... Fixes #105159
- Loading branch information
Showing
3 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
src/test/ui/issues/issue-35976.stderr → ...t/ui/issues/issue-35976.unimported.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
error: the `wait` method cannot be invoked on a trait object | ||
--> $DIR/issue-35976.rs:14:9 | ||
--> $DIR/issue-35976.rs:20:9 | ||
| | ||
LL | fn wait(&self) where Self: Sized; | ||
| ----- this has a `Sized` requirement | ||
... | ||
LL | arg.wait(); | ||
| ^^^^ | ||
| | ||
help: another candidate was found in the following trait, perhaps add a `use` for it: | ||
| | ||
LL | use private::Future; | ||
| | ||
|
||
error: aborting due to previous error | ||
|