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

30-minute Introduction to Rust example does not compile #24569

Closed
bhanderson opened this issue Apr 18, 2015 · 1 comment · Fixed by #24572
Closed

30-minute Introduction to Rust example does not compile #24569

bhanderson opened this issue Apr 18, 2015 · 1 comment · Fixed by #24572

Comments

@bhanderson
Copy link

The example for concurrency on the 30-minute Intro does not compile and run.

use std::thread;

fn main() {
    let guards: Vec<_> = (0..10).map(|_| {
        thread::scoped(|| {
            println!("Hello, world!");
        })
    }).collect();
}
@steveklabnik
Copy link
Member

Yes, we had to de-stabilize scoped.

steveklabnik added a commit to steveklabnik/rust that referenced this issue Apr 18, 2015
bors added a commit that referenced this issue Apr 19, 2015
steveklabnik added a commit to steveklabnik/rust that referenced this issue Apr 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants