fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
200 B12 linesraw
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}