]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-parameter-defaults-referencing-Self-ppaux.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / type / type-parameter-defaults-referencing-Self-ppaux.stderr
1 error[E0620]: cast to unsized type: `i32` as `dyn MyAdd<i32>`
2   --> $DIR/type-parameter-defaults-referencing-Self-ppaux.rs:24:13
3    |
4 LL |     let y = x as MyAdd<i32>;
5    |             ^^^^^^^^^^^^^^^
6    |
7 help: consider using a box or reference as appropriate
8   --> $DIR/type-parameter-defaults-referencing-Self-ppaux.rs:24:13
9    |
10 LL |     let y = x as MyAdd<i32>;
11    |             ^
12
13 error[E0038]: the trait `MyAdd` cannot be made into an object
14   --> $DIR/type-parameter-defaults-referencing-Self-ppaux.rs:24:18
15    |
16 LL |     let y = x as MyAdd<i32>;
17    |                  ^^^^^^^^^^ the trait `MyAdd` cannot be made into an object
18    |
19    = note: method `add` references the `Self` type in its arguments or return type
20
21 error: aborting due to 2 previous errors
22
23 Some errors occurred: E0038, E0620.
24 For more information about an error, try `rustc --explain E0038`.