]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/unused/issue-81314-unused-span-ident.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / lint / unused / 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