2018-08-08 07:28:26 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/dst-bad-coerce4.rs:12:32
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let f2: &Fat<[isize; 3]> = f1;
|
2023-01-02 20:00:33 -06:00
|
|
|
| ---------------- ^^ expected `&Fat<[isize; 3]>`, found `&Fat<[isize]>`
|
2019-11-18 23:00:24 -06:00
|
|
|
| |
|
|
|
|
| expected due to this
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected reference `&Fat<[isize; 3]>`
|
|
|
|
found reference `&Fat<[isize]>`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/dst-bad-coerce4.rs:20:30
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let f2: &([isize; 3],) = f1;
|
2023-01-02 20:00:33 -06:00
|
|
|
| -------------- ^^ expected `&([isize; 3],)`, found `&([isize],)`
|
2019-11-18 23:00:24 -06:00
|
|
|
| |
|
|
|
|
| expected due to this
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected reference `&([isize; 3],)`
|
|
|
|
found reference `&([isize],)`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|