//@ run-rustfix //@ edition:2018 fn _consume_reference(_: &T) {} async fn _foo() { _consume_reference::(&Box::new(7_i32)); _consume_reference::(&*async { Box::new(7_i32) }.await); //~^ ERROR mismatched types _consume_reference::<[i32]>(&vec![7_i32]); _consume_reference::<[i32]>(&async { vec![7_i32] }.await); } fn main() { }