]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized/param-mentioned-by-different-field.stderr
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / 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`.