]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/issue-81314-unused-span-ident.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / issue-81314-unused-span-ident.stderr
1 error: unused variable: `rest`
2   --> $DIR/issue-81314-unused-span-ident.rs:8:10
3    |
4 LL |     let [rest @ ..] = [1, 2, 3];
5    |          ^^^^ help: if this is intentional, prefix it with an underscore: `_rest`
6    |
7 note: the lint level is defined here
8   --> $DIR/issue-81314-unused-span-ident.rs:5:9
9    |
10 LL | #![deny(unused)]
11    |         ^^^^^^
12    = note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
13
14 error: unused variable: `rest`
15   --> $DIR/issue-81314-unused-span-ident.rs:11:13
16    |
17 LL | pub fn foo([rest @ ..]: &[i32]) {
18    |             ^^^^ help: if this is intentional, prefix it with an underscore: `_rest`
19
20 error: aborting due to 2 previous errors
21