summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue_5027.rs
blob: 26d771720b6c52963262acaee3343cb15db04109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// rustfmt-version: Two

pub type Iter<'a, D> = impl DoubleEndedIterator<Item = (SomethingSomethingSomethingLongType<D>)>
    + ExactSizeIterator
    + 'a;

trait FOo {
    pub type Iter<'a, D> = impl DoubleEndedIterator<Item = (SomethingSomethingSomethingLongType<D>)>
        + ExactSizeIterator
        + 'a;
}

impl Bar {
    type Iter<'a, D> = impl DoubleEndedIterator<Item = (SomethingSomethingSomethingLongType<D>)>
        + ExactSizeIterator
        + 'a;
}