edda2a7d3e
Fixes #121503. Fixes #121597.
14 lines
364 B
Rust
14 lines
364 B
Rust
//@ edition:2018
|
|
|
|
#![feature(allocator_api)]
|
|
struct Struct;
|
|
impl Struct {
|
|
async fn box_ref_Struct(self: Box<Self, impl FnMut(&mut Self)>) -> &u32 {
|
|
//~^ ERROR the trait bound `impl FnMut(&mut Self): Allocator` is not satisfied
|
|
//~| ERROR Box<Struct, impl FnMut(&mut Self)>` cannot be used as the type of `self` without
|
|
&1
|
|
}
|
|
}
|
|
|
|
fn main() {}
|