about summary refs log tree commit diff
path: root/tests/ui/parser/ufcs-return-unused-parens.stderr
blob: 6c09e98e7b1059f684bc3e73f37e695fc58fb976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
warning: unnecessary parentheses around `return` value
  --> $DIR/ufcs-return-unused-parens.rs:13:12
   |
LL |     return (<T as ToString>::to_string(&arg));
   |            ^                                ^
   |
note: the lint level is defined here
  --> $DIR/ufcs-return-unused-parens.rs:10:9
   |
LL | #![warn(unused_parens)]
   |         ^^^^^^^^^^^^^
help: remove these parentheses
   |
LL -     return (<T as ToString>::to_string(&arg));
LL +     return <T as ToString>::to_string(&arg);
   |

warning: 1 warning emitted