]> git.proxmox.com Git - rustc.git/blob - src/test/ui/path-lookahead.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / ui / path-lookahead.stderr
1 warning: unnecessary parentheses around `return` value
2 --> $DIR/path-lookahead.rs:18:10
3 |
4 18 | return (<T as ToString>::to_string(&arg)); //~WARN unnecessary parentheses around `return` value
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
6 |
7 note: lint level defined here
8 --> $DIR/path-lookahead.rs:13:9
9 |
10 13 | #![warn(unused)]
11 | ^^^^^^
12 = note: #[warn(unused_parens)] implied by #[warn(unused)]
13
14 warning: function is never used: `with_parens`
15 --> $DIR/path-lookahead.rs:17:1
16 |
17 17 | fn with_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `with_parens`
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 |
20 note: lint level defined here
21 --> $DIR/path-lookahead.rs:13:9
22 |
23 13 | #![warn(unused)]
24 | ^^^^^^
25 = note: #[warn(dead_code)] implied by #[warn(unused)]
26
27 warning: function is never used: `no_parens`
28 --> $DIR/path-lookahead.rs:21:1
29 |
30 21 | fn no_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `no_parens`
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32