mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add pretty-printer test of tuple field function call
This commit is contained in:
parent
e5f0d6ffbd
commit
c95f9f50de
@ -77,6 +77,9 @@ static EXPRS: &[&str] = &[
|
||||
// These mean different things.
|
||||
"if let _ = true && false {}",
|
||||
"if let _ = (true && false) {}",
|
||||
// Parentheses to call a named field, but not an unnamed field.
|
||||
"(self.fun)()",
|
||||
"(self.0)()", // FIXME: no parenthesis needed.
|
||||
// Conditions end at the first curly brace, so struct expressions need to be
|
||||
// parenthesized. Except in a match guard, where conditions end at arrow.
|
||||
"if let _ = (Struct {}) {}",
|
||||
|
Loading…
Reference in New Issue
Block a user