fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1// edition:2018 2// run-rustfix 3 4fn foo() -> Box<impl std::future::Future<Output = u32>> { 5 let x = 0u32; 6 Box::new(async move { x } ) 7 //~^ ERROR E0373 8} 9 10fn main() { 11 let _foo = foo(); 12}