summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/alignment_2633/horizontal_tactic.rs
blob: a381945fd8b8fd5fd8aef4b45e67250e2709d881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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: () },
}