We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5f0d6f commit fef8ec5Copy full SHA for fef8ec5
tests/ui-fulldeps/pprust-parenthesis-insertion.rs
@@ -108,6 +108,10 @@ static EXPRS: &[&str] = &[
108
"{ (match 2 {})() - 1 }",
109
"{ (match 2 {})[0] - 1 }",
110
"{ (loop {}) - 1 }",
111
+ "match 2 { _ => (loop {}) - 1 }",
112
+ // No eager statement boundary if followed by `.` or `?`.
113
+ "{ (loop {}).to_string() - 1 }", // FIXME: no parenthesis needed.
114
+ "match 2 { _ => (loop {}).to_string() - 1 }", // FIXME: no parenthesis needed.
115
// Angle bracket is eagerly parsed as a path's generic argument list.
116
"(2 as T) < U",
117
"(2 as T<U>) < V", // FIXME: no parentheses needed.
0 commit comments