]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dst/dst-bad-coerce4.stderr
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / ui / dst / dst-bad-coerce4.stderr
1 error[E0308]: mismatched types
2   --> $DIR/dst-bad-coerce4.rs:12:32
3    |
4 LL |     let f2: &Fat<[isize; 3]> = f1;
5    |             ----------------   ^^ expected array `[isize; 3]`, found slice `[isize]`
6    |             |
7    |             expected due to this
8    |
9    = note: expected reference `&Fat<[isize; 3]>`
10               found reference `&Fat<[isize]>`
11
12 error[E0308]: mismatched types
13   --> $DIR/dst-bad-coerce4.rs:20:30
14    |
15 LL |     let f2: &([isize; 3],) = f1;
16    |             --------------   ^^ expected array `[isize; 3]`, found slice `[isize]`
17    |             |
18    |             expected due to this
19    |
20    = note: expected reference `&([isize; 3],)`
21               found reference `&([isize],)`
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0308`.