Skip to content

Implicit trait coercions with moves will segfault #11197

Closed
@alexcrichton

Description

@alexcrichton

This code segfaults:

use std::io;

fn foo(mut a: ~Writer) {
    a.write(bytes!("Hello\n"));
}

fn main() {
    let out = io::stdout();
    foo(~out);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions