]> git.proxmox.com Git - rustc.git/blob - src/test/ui/unsized/param-mentioned-by-different-field.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / unsized / param-mentioned-by-different-field.stderr
1 error[E0308]: mismatched types
2 --> $DIR/param-mentioned-by-different-field.rs:8:25
3 |
4 LL | let y: &Foo<[u8]> = &x;
5 | ---------- ^^ expected slice `[u8]`, found array `[u8; 1]`
6 | |
7 | expected due to this
8 |
9 = note: expected reference `&Foo<[u8]>`
10 found reference `&Foo<[u8; 1]>`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.