]> git.lizzy.rs Git - rust.git/blob - src/test/ui/path-lookahead.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / path-lookahead.stderr
1 warning: unnecessary parentheses around `return` value
2   --> $DIR/path-lookahead.rs:8:10
3    |
4 LL |   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:3:9
9    |
10 LL | #![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:7:1
16    |
17 LL | 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:3:9
22    |
23 LL | #![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:11:1
29    |
30 LL | fn no_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `no_parens`
31    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32