2024-02-25 15:40:51 -06:00
|
|
|
//@ edition:2018
|
|
|
|
|
|
|
|
#![feature(allocator_api)]
|
|
|
|
struct Struct;
|
|
|
|
impl Struct {
|
|
|
|
async fn box_ref_Struct(self: Box<Self, impl FnMut(&mut Self)>) -> &u32 {
|
2024-03-19 15:58:37 -05:00
|
|
|
//~^ ERROR Box<Struct, impl FnMut(&mut Self)>` cannot be used as the type of `self` without
|
2024-02-25 15:40:51 -06:00
|
|
|
&1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|