Skip to content

Pretty printer doesn't preserve built-in trait bounds on trait objects #9253

Closed
@huonw

Description

@huonw
fn foo(x: ~Send:Freeze) -> ~Send:Freeze { x }

fn main() {
    let x: ~Send:Freeze;

    ~1 as ~Send:Freeze;
}

pretty prints to

fn foo(x: ~Send) -> ~Send { x }

fn main() {
    let x: ~Send;

    ~1 as ~Send;
}

(I xfail-pretty'd a test in #9225 because of this.)

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