2018-08-08 12:28:26 +00:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/dst-bad-coerce4.rs:12:32
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let f2: &Fat<[isize; 3]> = f1;
|
2023-01-03 02:00:33 +00:00
|
|
|
| ---------------- ^^ expected `&Fat<[isize; 3]>`, found `&Fat<[isize]>`
|
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<[isize; 3]>`
|
|
|
|
found reference `&Fat<[isize]>`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/dst-bad-coerce4.rs:20:30
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let f2: &([isize; 3],) = f1;
|
2023-01-03 02:00:33 +00:00
|
|
|
| -------------- ^^ expected `&([isize; 3],)`, found `&([isize],)`
|
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 `&([isize; 3],)`
|
|
|
|
found reference `&([isize],)`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|