]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coercion-slice.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / coercion / coercion-slice.stderr
1 error[E0308]: mismatched types
2   --> $DIR/coercion-slice.rs:14:21
3    |
4 LL |     let _: &[i32] = [0];
5    |                     ^^^
6    |                     |
7    |                     expected &[i32], found array of 1 elements
8    |                     help: consider borrowing here: `&[0]`
9    |
10    = note: expected type `&[i32]`
11               found type `[{integer}; 1]`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0308`.