1 error: unused borrow that must be used
2 --> $DIR/unused-borrows.rs:6:5
5 | ^^^ the borrow produces a value
7 note: the lint level is defined here
8 --> $DIR/unused-borrows.rs:1:9
10 LL | #![deny(unused_must_use)]
12 help: use `let _ = ...` to ignore the resulting value
17 error: unused borrow that must be used
18 --> $DIR/unused-borrows.rs:9:5
21 | ^^^^^^^^^^^^ the borrow produces a value
23 help: use `let _ = ...` to ignore the resulting value
25 LL | let _ = &mut foo(42);
28 error: unused borrow that must be used
29 --> $DIR/unused-borrows.rs:12:5
32 | ^^^^ the borrow produces a value
34 help: use `let _ = ...` to ignore the resulting value
39 error: unused borrow that must be used
40 --> $DIR/unused-borrows.rs:15:5
43 | ^^^^^^^^ the borrow produces a value
45 help: use `let _ = ...` to ignore the resulting value
47 LL | let _ = &&mut 42;
50 error: unused borrow that must be used
51 --> $DIR/unused-borrows.rs:18:5
54 | ^^^^^^^^ the borrow produces a value
56 help: use `let _ = ...` to ignore the resulting value
58 LL | let _ = &mut &42;
61 error: unused borrow that must be used
62 --> $DIR/unused-borrows.rs:23:5
65 | ^^^^^^^^^^ the borrow produces a value
67 help: use `let _ = ...` to ignore the resulting value
69 LL | let _ = && foo(42);
72 error: aborting due to 6 previous errors