Skip to content

Pretty printer doesn't handle & & correctly #7895

Closed
@huonw

Description

@huonw
fn main() { & &"foo"; }
> rustc andand.rs --pretty
fn main() { &&"foo"; }
> rustc andand.rs --pretty | rustc -
<anon>:1:12: 1:14 error: unexpected token: `&&`
<anon>:1 fn main() { &&"foo"; }
                     ^~

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-prettyArea: Pretty printing (including `-Z unpretty`)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions