rust/tests/ui/dst/dst-bad-coerce4.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
818 B
Plaintext
Raw Normal View History

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;
| ---------------- ^^ expected `&Fat<[isize; 3]>`, found `&Fat<[isize]>`
| |
| expected due to this
2018-08-08 07:28:26 -05: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;
| -------------- ^^ expected `&([isize; 3],)`, found `&([isize],)`
| |
| expected due to this
2018-08-08 07:28:26 -05: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`.