auto merge of #5193 : sethpink/rust/struct-tup-pp, r=catamorphism
- Removed space between struct name and parentheses - Fixed indentation of the rest of the file (missing end) - Don't print parentheses for structs with no fields - Added test
This commit is contained in:
commit
d3b94f6f34
2 changed files with 22 additions and 16 deletions
10
src/test/pretty/struct-tuple.rs
Normal file
10
src/test/pretty/struct-tuple.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// pp-exact
|
||||
struct Foo;
|
||||
struct Bar(int, int);
|
||||
|
||||
fn main() {
|
||||
struct Foo2;
|
||||
struct Bar2(int, int, int);
|
||||
let a = Bar(5, 5);
|
||||
let b = Foo;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue