2018-08-08 12:28:26 +00:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/dst-bad-coerce1.rs:16:29
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let f3: &Fat<[usize]> = f2;
|
2023-01-03 02:00:33 +00:00
|
|
|
| ------------- ^^ expected `&Fat<[usize]>`, found `&Fat<[isize; 3]>`
|
2019-11-19 05:00:24 +00:00
|
|
|
| |
|
|
|
|
| expected due to this
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-11-13 22:16:56 +00:00
|
|
|
= note: expected reference `&Fat<[usize]>`
|
|
|
|
found reference `&Fat<[isize; 3]>`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `Foo: Bar` is not satisfied
|
2019-05-28 18:46:13 +00:00
|
|
|
--> $DIR/dst-bad-coerce1.rs:22:29
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | let f3: &Fat<dyn Bar> = f2;
|
|
|
|
| ^^ the trait `Bar` is not implemented for `Foo`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2023-05-11 02:10:56 +00:00
|
|
|
= note: required for the cast from `&Fat<Foo>` to `&Fat<dyn Bar>`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/dst-bad-coerce1.rs:28:27
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let f3: &([usize],) = f2;
|
2023-01-03 02:00:33 +00:00
|
|
|
| ----------- ^^ expected `&([usize],)`, found `&([isize; 3],)`
|
2019-11-19 05:00:24 +00:00
|
|
|
| |
|
|
|
|
| expected due to this
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-11-13 22:16:56 +00:00
|
|
|
= note: expected reference `&([usize],)`
|
|
|
|
found reference `&([isize; 3],)`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `Foo: Bar` is not satisfied
|
2019-05-28 18:46:13 +00:00
|
|
|
--> $DIR/dst-bad-coerce1.rs:34:27
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | let f3: &(dyn Bar,) = f2;
|
|
|
|
| ^^ the trait `Bar` is not implemented for `Foo`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2023-05-11 02:10:56 +00:00
|
|
|
= note: required for the cast from `&(Foo,)` to `&(dyn Bar,)`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
Some errors have detailed explanations: E0277, E0308.
|
2018-08-08 12:28:26 +00:00
|
|
|
For more information about an error, try `rustc --explain E0277`.
|