We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code will fail to compile at "Self::new()" with the message, "error: failed to resolve. Use of undeclared type or module Self"
Self
struct Foo; impl Foo { fn new() -> Self { Foo } fn bar() { Self::new(); } }
While either of the following will work:
fn bar() { <Self>::new(); } fn bar() { let x: Self = Foo::new(); }
The first example should compile as-is.
The text was updated successfully, but these errors were encountered:
Add test for #24389
47c176e
Closes #24389.
Auto merge of #28707 - apasel422:issue-24389, r=alexcrichton
abfbea2
No branches or pull requests
The following code will fail to compile at "Self::new()" with the message, "error: failed to resolve. Use of undeclared type or module
Self
"While either of the following will work:
The first example should compile as-is.
The text was updated successfully, but these errors were encountered: