]> git.lizzy.rs Git - rust.git/blob - src/test/ui/path-lookahead.stderr
Auto merge of #44060 - taleks:issue-43205, r=arielb1
[rust.git] / src / test / ui / path-lookahead.stderr
1 warning: unnecessary parentheses around `return` value
2   --> $DIR/path-lookahead.rs:18:10
3    |
4 18 |   return (<T as ToString>::to_string(&arg)); //~WARN unnecessary parentheses around `return` value
5    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: #[warn(unused_parens)] on by default
8
9 warning: function is never used: `with_parens`
10   --> $DIR/path-lookahead.rs:17:1
11    |
12 17 | / fn with_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `with_parens`
13 18 | |   return (<T as ToString>::to_string(&arg)); //~WARN unnecessary parentheses around `return` value
14 19 | | }
15    | |_^
16    |
17 note: lint level defined here
18   --> $DIR/path-lookahead.rs:13:9
19    |
20 13 | #![warn(unused)]
21    |         ^^^^^^
22    = note: #[warn(dead_code)] implied by #[warn(unused)]
23
24 warning: function is never used: `no_parens`
25   --> $DIR/path-lookahead.rs:21:1
26    |
27 21 | / fn no_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `no_parens`
28 22 | |   return <T as ToString>::to_string(&arg);
29 23 | | }
30    | |_^
31