-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"cycle detected" with impl Self {} #93952
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
matthiaskrgr
added
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Feb 12, 2022
A potentially confusing case: struct Foo;
impl Foo {
fn foo() {
impl Self { fn bar() {} }
}
}
|
@rustbot claim |
No longer repros in 1.68.0-nightly (2023-01-09 3020239) as it now returns a a better message (playground):
Also found this issue via a similar usecase, which also no longer repros:
|
Yeah @BoxyUwU fixed this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
Ideally the output should look like:
Something more like
Or even a better message explaining that there should be an actual type there instead of just "Self" ..?
The text was updated successfully, but these errors were encountered: