#![allow(dead_code, deprecated, unused_variables, unused_mut)] use std::pin::Pin; use std::future::Future; async fn add_one(x: u32) -> u32 { x + 1 } fn boxed_add_one(x: u32) -> Box> { Box::new(add_one(x)) } fn main() { let boxed_fut = boxed_add_one(42); let pinned_fut: Pin> = Box::into_pin(boxed_fut); }