about summary refs log tree commit diff
path: root/src/tools/rustfmt/tests/target/issue_5027.rs
blob: 1de3e0d4f153f8cc660db1e1de62969673bdde66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// rustfmt-style_edition: 2024

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;
}