]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/unused-borrows.stderr
Rollup merge of #86381 - yerke:add-test-for-issue-39161, r=JohnTitor
[rust.git] / src / test / ui / lint / unused-borrows.stderr
1 error: unused borrow that must be used
2   --> $DIR/unused-borrows.rs:6:5
3    |
4 LL |     &42;
5    |     ^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/unused-borrows.rs:1:9
9    |
10 LL | #![deny(unused_must_use)]
11    |         ^^^^^^^^^^^^^^^
12
13 error: unused borrow that must be used
14   --> $DIR/unused-borrows.rs:9:5
15    |
16 LL |     &mut foo(42);
17    |     ^^^^^^^^^^^^
18
19 error: unused borrow that must be used
20   --> $DIR/unused-borrows.rs:12:5
21    |
22 LL |     &&42;
23    |     ^^^^
24
25 error: unused borrow that must be used
26   --> $DIR/unused-borrows.rs:15:5
27    |
28 LL |     &&mut 42;
29    |     ^^^^^^^^
30
31 error: unused borrow that must be used
32   --> $DIR/unused-borrows.rs:18:5
33    |
34 LL |     &mut &42;
35    |     ^^^^^^^^
36
37 error: unused borrow that must be used
38   --> $DIR/unused-borrows.rs:23:5
39    |
40 LL |     && foo(42);
41    |     ^^^^^^^^^^
42
43 error: aborting due to 6 previous errors
44