summaryrefslogtreecommitdiffstats
path: root/tests/ui/dst/dst-bad-coerce4.stderr
blob: 46e7dba817c846809647d2a3a6644a1bdb7ecf78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error[E0308]: mismatched types
  --> $DIR/dst-bad-coerce4.rs:12:32
   |
LL |     let f2: &Fat<[isize; 3]> = f1;
   |             ----------------   ^^ expected `&Fat<[isize; 3]>`, found `&Fat<[isize]>`
   |             |
   |             expected due to this
   |
   = note: expected reference `&Fat<[isize; 3]>`
              found reference `&Fat<[isize]>`

error[E0308]: mismatched types
  --> $DIR/dst-bad-coerce4.rs:20:30
   |
LL |     let f2: &([isize; 3],) = f1;
   |             --------------   ^^ expected `&([isize; 3],)`, found `&([isize],)`
   |             |
   |             expected due to this
   |
   = note: expected reference `&([isize; 3],)`
              found reference `&([isize],)`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.