1 error[E0308]: mismatched types
2 --> $DIR/param-mentioned-by-different-field.rs:8:25
4 LL | let y: &Foo<[u8]> = &x;
5 | ---------- ^^ expected slice `[u8]`, found array `[u8; 1]`
9 = note: expected reference `&Foo<[u8]>`
10 found reference `&Foo<[u8; 1]>`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.