Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Write barriers don't work for @mut #4825

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());
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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