]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | warning: unnecessary parentheses around `return` value |
3b2f2976 | 2 | --> $DIR/path-lookahead.rs:18:10 |
7cac9316 | 3 | | |
3b2f2976 | 4 | 18 | return (<T as ToString>::to_string(&arg)); //~WARN unnecessary parentheses around `return` value |
ea8adc8c | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses |
7cac9316 | 6 | | |
abe05a73 XL |
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)] | |
7cac9316 XL |
13 | |
14 | warning: function is never used: `with_parens` | |
3b2f2976 | 15 | --> $DIR/path-lookahead.rs:17:1 |
7cac9316 | 16 | | |
ea8adc8c XL |
17 | 17 | fn with_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `with_parens` |
18 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
7cac9316 | 19 | | |
3b2f2976 XL |
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)] | |
7cac9316 XL |
26 | |
27 | warning: function is never used: `no_parens` | |
3b2f2976 | 28 | --> $DIR/path-lookahead.rs:21:1 |
7cac9316 | 29 | | |
ea8adc8c XL |
30 | 21 | fn no_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `no_parens` |
31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
7cac9316 | 32 |