]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-4908-2.rs
Auto merge of #95315 - compiler-errors:pointee-fix, r=pnkfelix
[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 }