1 error[E0308]: mismatched types
2 --> $DIR/dst-bad-coerce1.rs:16:29
4 LL | let f3: &Fat<[usize]> = f2;
5 | ^^ expected slice `[usize]`, found array `[isize; 3]`
7 = note: expected reference `&Fat<[usize]>`
8 found reference `&Fat<[isize; 3]>`
10 error[E0277]: the trait bound `Foo: Bar` is not satisfied
11 --> $DIR/dst-bad-coerce1.rs:22:29
13 LL | let f3: &Fat<dyn Bar> = f2;
14 | ^^ the trait `Bar` is not implemented for `Foo`
16 = note: required for the cast to the object type `dyn Bar`
18 error[E0308]: mismatched types
19 --> $DIR/dst-bad-coerce1.rs:28:27
21 LL | let f3: &([usize],) = f2;
22 | ^^ expected slice `[usize]`, found array `[isize; 3]`
24 = note: expected reference `&([usize],)`
25 found reference `&([isize; 3],)`
27 error[E0277]: the trait bound `Foo: Bar` is not satisfied
28 --> $DIR/dst-bad-coerce1.rs:34:27
30 LL | let f3: &(dyn Bar,) = f2;
31 | ^^ the trait `Bar` is not implemented for `Foo`
33 = note: required for the cast to the object type `dyn Bar`
35 error: aborting due to 4 previous errors
37 Some errors have detailed explanations: E0277, E0308.
38 For more information about an error, try `rustc --explain E0277`.