forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
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 rust-lang#106928 - bvanjoi:print-keyword-raw-identifi…
…er, r=petrochenkov add raw identifier for keyword in suggestion fix rust-lang#106841
- Loading branch information
Showing
4 changed files
with
37 additions
and
6 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
10 changes: 5 additions & 5 deletions
10
...s/issue-65634-raw-ident-suggestion.stderr → ...4-raw-ident-suggestion.edition2015.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
28 changes: 28 additions & 0 deletions
28
tests/ui/issues/issue-65634-raw-ident-suggestion.edition2018.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
error[E0034]: multiple applicable items in scope | ||
--> $DIR/issue-65634-raw-ident-suggestion.rs:24:13 | ||
| | ||
LL | r#fn {}.r#struct(); | ||
| ^^^^^^^^ multiple `r#struct` found | ||
| | ||
note: candidate #1 is defined in an impl of the trait `r#async` for the type `r#fn` | ||
--> $DIR/issue-65634-raw-ident-suggestion.rs:7:5 | ||
| | ||
LL | fn r#struct(&self) { | ||
| ^^^^^^^^^^^^^^^^^^ | ||
note: candidate #2 is defined in an impl of the trait `r#await` for the type `r#fn` | ||
--> $DIR/issue-65634-raw-ident-suggestion.rs:13:5 | ||
| | ||
LL | fn r#struct(&self) { | ||
| ^^^^^^^^^^^^^^^^^^ | ||
help: disambiguate the associated function for candidate #1 | ||
| | ||
LL | r#async::r#struct(&r#fn {}); | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
help: disambiguate the associated function for candidate #2 | ||
| | ||
LL | r#await::r#struct(&r#fn {}); | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0034`. |
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