]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coercion-slice.stderr
Rollup merge of #103645 - weihanglo:update-cargo, r=weihanglo
[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    |            expected due to this
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0308`.