8 lines
173 B
Rust
8 lines
173 B
Rust
|
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() {
|
||
|
}
|