2017-05-13 04:54:50 -05:00
|
|
|
warning: unnecessary parentheses around `return` value
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/path-lookahead.rs:8:10
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | return (<T as ToString>::to_string(&arg)); //~WARN unnecessary parentheses around `return` value
|
2017-09-30 01:52:51 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
2017-10-20 16:00:57 -05:00
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/path-lookahead.rs:3:9
|
2017-10-20 16:00:57 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #![warn(unused)]
|
2017-10-20 16:00:57 -05:00
|
|
|
| ^^^^^^
|
|
|
|
= note: #[warn(unused_parens)] implied by #[warn(unused)]
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
|
|
warning: function is never used: `with_parens`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/path-lookahead.rs:7:1
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn with_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `with_parens`
|
2017-09-25 14:01:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
2017-07-26 23:51:09 -05:00
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/path-lookahead.rs:3:9
|
2017-07-26 23:51:09 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #![warn(unused)]
|
2017-07-26 23:51:09 -05:00
|
|
|
| ^^^^^^
|
|
|
|
= note: #[warn(dead_code)] implied by #[warn(unused)]
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
|
|
warning: function is never used: `no_parens`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/path-lookahead.rs:11:1
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn no_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `no_parens`
|
2017-09-25 14:01:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-05-13 04:54:50 -05:00
|
|
|
|