Skip to content

Write barriers don't work for @mut #4825

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
pcwalton opened this issue Feb 7, 2013 · 0 comments
Closed

Write barriers don't work for @mut #4825

pcwalton opened this issue Feb 7, 2013 · 0 comments
Labels
A-lifetimes Area: Lifetimes / regions A-type-system Area: Type system
Milestone

Comments

@pcwalton
Copy link
Contributor

pcwalton commented Feb 7, 2013

cc @nikomatsakis

Test case:

struct Foo {
    x: ~[int]
}

fn main() {
    let x = @mut Foo { x: ~[ 1, 2, 3, 4, 5 ] };
    for x.x.each |x| {
        io::println(x.to_str());
    }
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-lifetimes Area: Lifetimes / regions A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

2 participants