rust/tests/ui/coercion
Michael Howell 20c833c632 diagnostics: Box<dyn Trait> suggestion with multiple matching impl
The two altered expectation messages both seem like improvements:

- `coerce-expect-unsized-ascribed.stderr` says you can go
  `Box<char> -> Box<dyn Debug>`, which you can.
- `upcast_soundness_bug.stderr` used to say that you could go
  `Box<dyn Trait<u8, u8>> -> Box<dyn Trait>`, which you can't,
  because the type parameters are missing in the destination
  and the only ones that work aren't what's needed.
2024-08-06 18:24:17 -07:00
..
auxiliary
coerce-block-tail-26978.rs
coerce-block-tail-26978.stderr
coerce-block-tail-57749.rs
coerce-block-tail-57749.stderr
coerce-block-tail-83783.fixed
coerce-block-tail-83783.rs
coerce-block-tail-83783.stderr
coerce-block-tail-83850.rs
coerce-block-tail-83850.stderr
coerce-block-tail.rs
coerce-block-tail.stderr
coerce-expect-unsized-ascribed.rs
coerce-expect-unsized-ascribed.stderr diagnostics: Box<dyn Trait> suggestion with multiple matching impl 2024-08-06 18:24:17 -07:00
coerce-expect-unsized.rs
coerce-issue-49593-box-never.fallback.stderr
coerce-issue-49593-box-never.nofallback.stderr
coerce-issue-49593-box-never.rs
coerce-loop-issue-122561.rs
coerce-loop-issue-122561.stderr
coerce-mut.rs
coerce-mut.stderr
coerce-overloaded-autoderef-fail.rs
coerce-overloaded-autoderef-fail.stderr
coerce-overloaded-autoderef.rs
coerce-reborrow-imm-ptr-arg.rs
coerce-reborrow-imm-ptr-rcvr.rs
coerce-reborrow-imm-vec-arg.rs
coerce-reborrow-imm-vec-rcvr.rs
coerce-reborrow-multi-arg-fail.rs
coerce-reborrow-multi-arg-fail.stderr
coerce-reborrow-multi-arg.rs
coerce-reborrow-mut-ptr-arg.rs
coerce-reborrow-mut-ptr-rcvr.rs
coerce-reborrow-mut-vec-arg.rs
coerce-reborrow-mut-vec-rcvr.rs
coerce-to-bang-cast.rs
coerce-to-bang-cast.stderr
coerce-to-bang.rs
coerce-to-bang.stderr
coerce-unify-return.rs
coerce-unify.rs
coerce-unsize-subtype.rs
coercion-missing-tail-expected-type.fixed
coercion-missing-tail-expected-type.rs
coercion-missing-tail-expected-type.stderr
coercion-slice.rs
coercion-slice.stderr
issue-3794.rs
issue-14589.rs
issue-14589.stderr
issue-26905-rpass.rs
issue-26905.rs
issue-26905.stderr
issue-32122-1.fixed
issue-32122-1.rs
issue-32122-1.stderr
issue-32122-2.fixed
issue-32122-2.rs
issue-32122-2.stderr
issue-36007.rs
issue-37655.rs
issue-39823.rs
issue-53475.rs
issue-53475.stderr
issue-73886.rs
issue-73886.stderr
issue-88097.rs
issue-101066.rs
mut-mut-wont-coerce.rs
mut-mut-wont-coerce.stderr
pin-dyn-dispatch-sound.rs
pin-dyn-dispatch-sound.stderr
retslot-cast.rs
retslot-cast.stderr
type-errors.rs
type-errors.stderr
unsafe-coercion.rs