-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #73046 - marmeladema:save-analysis-fix-path, r=Xanewok
- Loading branch information
Showing
5 changed files
with
39 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// compile-flags: -Zsave-analysis | ||
use {self}; //~ ERROR E0431 | ||
|
||
fn main () { | ||
} |
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,9 @@ | ||
error[E0431]: `self` import can only appear in an import list with a non-empty prefix | ||
--> $DIR/issue-73020.rs:2:6 | ||
| | ||
LL | use {self}; | ||
| ^^^^ can only appear in an import list with a non-empty prefix | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0431`. |
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,13 @@ | ||
// build-pass | ||
// compile-flags: -Zsave-analysis | ||
enum Enum2 { | ||
Variant8 { _field: bool }, | ||
} | ||
|
||
impl Enum2 { | ||
fn new_variant8() -> Enum2 { | ||
Self::Variant8 { _field: true } | ||
} | ||
} | ||
|
||
fn main() {} |