pub fn main() {
// With a vec of ints.
let f1 = Fat { ptr: [1, 2, 3] };
- let f2: &Fat<[int; 3]> = &f1;
- let f3: &mut Fat<[int]> = f2; //~ ERROR mismatched types
+ let f2: &Fat<[isize; 3]> = &f1;
+ let f3: &mut Fat<[isize]> = f2; //~ ERROR mismatched types
// With a trait.
let f1 = Fat { ptr: Foo };