2022-12-23 00:13:47 +00:00
|
|
|
#[derive(Clone)] //~ trait objects must include the `dyn` keyword
|
2023-10-31 13:45:26 +00:00
|
|
|
//~^ ERROR: the size for values of type `(dyn Foo + 'static)` cannot be known
|
2024-02-09 12:17:55 +00:00
|
|
|
//~| ERROR: return type cannot have an unboxed trait object
|
2022-12-23 00:13:47 +00:00
|
|
|
struct Foo;
|
|
|
|
trait Foo {} //~ the name `Foo` is defined multiple times
|
|
|
|
fn main() {}
|