//@ edition:2018 #![feature(allocator_api)] struct Struct; impl Struct { async fn box_ref_Struct(self: Box) -> &u32 { //~^ ERROR Box` cannot be used as the type of `self` without &1 } } fn main() {}