rust/tests/target/alignment_2633/horizontal_tactic.rs
Stéphane Campinas 7132fe03a0
fix alignment of a struct's fields with the visual style
- rewrite_with_alignment was called from the expr module with the wrong
  shape that missed the extra offset needed for the visual style
- rewrite_with_alignment was indenting the given shape although that
  should have been the caller's responsability
2018-11-04 23:41:21 +01:00

14 lines
298 B
Rust

// rustfmt-struct_field_align_threshold: 5
#[derive(Fail, Debug, Clone)]
pub enum BuildError {
LineTooLong { length: usize, limit: usize },
DisallowedByte { b: u8, pos: usize },
ContainsNewLine { pos: usize },
}
enum Foo {
A { a: usize, bbbbb: () },
B { a: (), bbbbb: () },
}