summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-4908-2.rs
blob: 023b323cb2796f65af8362c4e0da4d6c2c227bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#![feature(more_qualified_paths)]

fn main() {
    // destructure through a qualified path
    let <Foo as A>::Assoc { br } = StructStruct { br: 2 };
}

struct StructStruct {
    br: i8,
}

struct Foo;

trait A {
    type Assoc;
}

impl A for Foo {
    type Assoc = StructStruct;
}