]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | warning: unnecessary parentheses around `return` value |
0731742a | 2 | --> $DIR/path-lookahead.rs:8:10 |
7cac9316 | 3 | | |
0531ce1d | 4 | LL | return (<T as ToString>::to_string(&arg)); //~WARN unnecessary parentheses around `return` value |
ea8adc8c | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses |
7cac9316 | 6 | | |
abe05a73 | 7 | note: lint level defined here |
0731742a | 8 | --> $DIR/path-lookahead.rs:3:9 |
abe05a73 | 9 | | |
0531ce1d | 10 | LL | #![warn(unused)] |
abe05a73 XL |
11 | | ^^^^^^ |
12 | = note: #[warn(unused_parens)] implied by #[warn(unused)] | |
7cac9316 XL |
13 | |
14 | warning: function is never used: `with_parens` | |
0731742a | 15 | --> $DIR/path-lookahead.rs:7:1 |
7cac9316 | 16 | | |
0531ce1d | 17 | LL | fn with_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `with_parens` |
ea8adc8c | 18 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
7cac9316 | 19 | | |
3b2f2976 | 20 | note: lint level defined here |
0731742a | 21 | --> $DIR/path-lookahead.rs:3:9 |
3b2f2976 | 22 | | |
0531ce1d | 23 | LL | #![warn(unused)] |
3b2f2976 XL |
24 | | ^^^^^^ |
25 | = note: #[warn(dead_code)] implied by #[warn(unused)] | |
7cac9316 XL |
26 | |
27 | warning: function is never used: `no_parens` | |
0731742a | 28 | --> $DIR/path-lookahead.rs:11:1 |
7cac9316 | 29 | | |
0531ce1d | 30 | LL | fn no_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `no_parens` |
ea8adc8c | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
7cac9316 | 32 |