blob: b6454e578e6af22b8f4fd438efdccd4a5cc3a416 [file] [log] [blame]
pub trait Trait {
fn dyn_instead_of_self(self: Box<dyn Trait>);
//~^ ERROR invalid method receiver type: std::boxed::Box<(dyn Trait + 'static)>
}
pub fn main() {
}