Closed
Description
fn main() {
dbg!(5, 10); // error: no rules expected the token `,`
}
It would be nice if the compiler suggested the intended form: dbg!((5, 10))
as this seems like a reasonable mistake. This is specific to a particular macro, though, so I'm not sure how flexible we can be with diagnostics here.
Activity
Centril commentedon Apr 7, 2019
Or we could just make the macro accept
dbg!(5, 10)
...dbg!(..)
#59826Auto merge of #59826 - llogiq:multi-dbg, r=SimonSapin