Skip to content

Doesn't forbid moving into owned closure multiple times #7810

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
goffrie opened this issue Jul 16, 2013 · 2 comments
Closed

Doesn't forbid moving into owned closure multiple times #7810

goffrie opened this issue Jul 16, 2013 · 2 comments

Comments

@goffrie
Copy link
Contributor

goffrie commented Jul 16, 2013

fn main() {
    let h = ~[1,2,3];
    do std::task::try {
        println(fmt!("%?", h));
    };
    do std::task::try {
        println(fmt!("%?", h));
    };
}

This causes a segfault. Also happens if you put the do in a loop.

@goffrie
Copy link
Contributor Author

goffrie commented Jul 16, 2013

I think this might be a dup of #6801, actually.

@bluss
Copy link
Member

bluss commented Jul 16, 2013

dup of issue #7444

@huonw huonw closed this as completed Jul 16, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Nov 4, 2021
…lip1995

Move if_then_panic to pedantic and rename to manual_assert
flip1995 pushed a commit to flip1995/rust that referenced this issue Nov 4, 2021
[beta] Backport: Move if_then_panic to pedantic and rename to manual_assert

Backport of rust-lang#7810

cc `@camsteffen`

r? `@ghost`

changelog: none (same release)
flip1995 pushed a commit to flip1995/rust that referenced this issue Nov 4, 2021
…lip1995

Move if_then_panic to pedantic and rename to manual_assert

Closes rust-lang#7718

changelog: none (lint added since last release)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants