- Notifications
You must be signed in to change notification settings - Fork 971
Closed
Labels
I-poor-formattingIssue: poor formattingIssue: poor formatting
Description
cargo +nightly fmt fails to parse the following code:
#![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 Metadata
Metadata
Assignees
Labels
I-poor-formattingIssue: poor formattingIssue: poor formatting