1 error[E0620]: cast to unsized type: `i32` as `dyn MyAdd<i32>`
2 --> $DIR/type-parameter-defaults-referencing-Self-ppaux.rs:24:13
4 LL | let y = x as MyAdd<i32>;
7 help: consider using a box or reference as appropriate
8 --> $DIR/type-parameter-defaults-referencing-Self-ppaux.rs:24:13
10 LL | let y = x as MyAdd<i32>;
13 error[E0038]: the trait `MyAdd` cannot be made into an object
14 --> $DIR/type-parameter-defaults-referencing-Self-ppaux.rs:24:18
16 LL | let y = x as MyAdd<i32>;
17 | ^^^^^^^^^^ the trait `MyAdd` cannot be made into an object
19 = note: method `add` references the `Self` type in its arguments or return type
21 error: aborting due to 2 previous errors
23 Some errors occurred: E0038, E0620.
24 For more information about an error, try `rustc --explain E0038`.