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
cargo +nightly fmt fails to parse the following code:
cargo +nightly fmt
#![feature(const_generics)] fn main() { let i = test::<-1>(); println!("Hello, {}!", i); } fn test<const T: i8>() -> i8 { {T} }
output:
error: expected identifier, found `<-` --> /Users/brian/Repos/untitled3/src/main.rs:4:19 | 4 | let i = test::<-1>(); | ^^ expected identifier
The text was updated successfully, but these errors were encountered:
Cannot-be-parsed part is fixed on the master, though with suboptimal formatting:
fn test<const T: i8>() -> i8 { - {T} + { + T + } }
Sorry, something went wrong.
Add tests for rust-lang#3614
ec12a89
single_line_if_else_max_width
Successfully merging a pull request may close this issue.
cargo +nightly fmt
fails to parse the following code:output:
The text was updated successfully, but these errors were encountered: