Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRustasync/await state machineSingle-choice MCQ

Given this async code, why does the future returned by `foo` become `!Send` even though `i32` is `Send`?

use std::rc::Rc; async fn bar() {} async fn foo() { let local = Rc::new(5); bar().await; println!("{}", local); }