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
pub fn f(_: &(ToString + 'static)) {}
This function is documented as:
The parentheses are missing and the function would not compile without them:
error[E0178]: expected a path on the left-hand side of `+`, not `&ToString` --> src/main.rs:1:13 | 1 | pub fn f(_: &ToString + 'static) {} | ^^^^^^^^^^^^^^^^^^^ help: try adding parentheses: `&(ToString + 'static)`
The text was updated successfully, but these errors were encountered:
Well found! Taking a look.
Sorry, something went wrong.
Auto merge of #42318 - GuillaumeGomez:rustdoc-fix-signature, r=QuietM…
fd7b44b
…isdreavus Fix signature by adding parens when needed Fixes #42299.
GuillaumeGomez
No branches or pull requests
This function is documented as:
The parentheses are missing and the function would not compile without them:
The text was updated successfully, but these errors were encountered: