]> git.proxmox.com Git - rustc.git/blame - src/test/ui/path-lookahead.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / path-lookahead.stderr
CommitLineData
7cac9316 1warning: unnecessary parentheses around `return` value
0731742a 2 --> $DIR/path-lookahead.rs:8:10
7cac9316 3 |
0531ce1d 4LL | return (<T as ToString>::to_string(&arg)); //~WARN unnecessary parentheses around `return` value
ea8adc8c 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
7cac9316 6 |
abe05a73 7note: lint level defined here
0731742a 8 --> $DIR/path-lookahead.rs:3:9
abe05a73 9 |
0531ce1d 10LL | #![warn(unused)]
abe05a73
XL
11 | ^^^^^^
12 = note: #[warn(unused_parens)] implied by #[warn(unused)]
7cac9316
XL
13
14warning: function is never used: `with_parens`
0731742a 15 --> $DIR/path-lookahead.rs:7:1
7cac9316 16 |
0531ce1d 17LL | fn with_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `with_parens`
ea8adc8c 18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7cac9316 19 |
3b2f2976 20note: lint level defined here
0731742a 21 --> $DIR/path-lookahead.rs:3:9
3b2f2976 22 |
0531ce1d 23LL | #![warn(unused)]
3b2f2976
XL
24 | ^^^^^^
25 = note: #[warn(dead_code)] implied by #[warn(unused)]
7cac9316
XL
26
27warning: function is never used: `no_parens`
0731742a 28 --> $DIR/path-lookahead.rs:11:1
7cac9316 29 |
0531ce1d 30LL | fn no_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `no_parens`
ea8adc8c 31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7cac9316 32