Skip to content

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

Closed

Description

@bhanderson

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();
}

Activity

  1. steveklabnik commented on Apr 18, 2015

    @steveklabnik
    Contributor

    Yes, we had to de-stabilize scoped.

  2. added a commit that references this issue on Apr 18, 2015
    290da6f
  3. added a commit that references this issue on Apr 19, 2015
    ddf25c8
  4. added a commit that references this issue on Apr 25, 2015
    6a31baa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions