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