more_qualified_paths - The Rust Unstable Book

## Keyboard shortcuts

Press `←` or `→` to navigate between chapters

Press `S` or `/` to search in the book

Press `?` to show this help

Press `Esc` to hide this help

# `more_qualified_paths`

The `more_qualified_paths` feature can be used in order to enable the use of qualified paths in patterns.

The tracking issue for this feature is: #86935.

## Example

    #![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;
    }