Skip to content

Document where use directives are allowed #3862

Closed
@brson

Description

@brson

I expect this to work:

impl CssSelectResultsRef {                                                                                                                                                    
    use properties::CssColorProp;                                                                                                                                             
    fn computed_color(element: css_pseudo_element) -> CssColorProp {                                                                                                          
        fail                                                                                                                                                                  
    }                                                                                                                                                                         
}         

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyC-enhancementCategory: An issue proposing an enhancement or a PR with one.P-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions