]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-4908-2.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / tools / rustfmt / tests / target / issue-4908-2.rs
1 #![feature(more_qualified_paths)]
2
3 fn main() {
4     // destructure through a qualified path
5     let <Foo as A>::Assoc { br } = StructStruct { br: 2 };
6 }
7
8 struct StructStruct {
9     br: i8,
10 }
11
12 struct Foo;
13
14 trait A {
15     type Assoc;
16 }
17
18 impl A for Foo {
19     type Assoc = StructStruct;
20 }