We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5f0d6f commit c95f9f5Copy full SHA for c95f9f5
tests/ui-fulldeps/pprust-parenthesis-insertion.rs
@@ -77,6 +77,9 @@ static EXPRS: &[&str] = &[
77
// These mean different things.
78
"if let _ = true && false {}",
79
"if let _ = (true && false) {}",
80
+ // Parentheses to call a named field, but not an unnamed field.
81
+ "(self.fun)()",
82
+ "(self.0)()", // FIXME: no parenthesis needed.
83
// Conditions end at the first curly brace, so struct expressions need to be
84
// parenthesized. Except in a match guard, where conditions end at arrow.
85
"if let _ = (Struct {}) {}",
0 commit comments