]> git.lizzy.rs Git - rust.git/blob - src/test/ui/path-lookahead.stderr
Rollup merge of #45095 - bluss:discriminant-send-sync, r=alexcrichton
[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    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
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    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14    |
15 note: lint level defined here
16   --> $DIR/path-lookahead.rs:13:9
17    |
18 13 | #![warn(unused)]
19    |         ^^^^^^
20    = note: #[warn(dead_code)] implied by #[warn(unused)]
21
22 warning: function is never used: `no_parens`
23   --> $DIR/path-lookahead.rs:21:1
24    |
25 21 | fn no_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `no_parens`
26    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27