]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coercion-slice.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / coercion / coercion-slice.stderr
1 error[E0308]: mismatched types
2   --> $DIR/coercion-slice.rs:4:21
3    |
4 LL |     let _: &[i32] = [0];
5    |                     ^^^
6    |                     |
7    |                     expected &[i32], found array `[{integer}; 1]`
8    |                     help: consider borrowing here: `&[0]`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0308`.