summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused_parens_json_suggestion.stderr
blob: ea19e0cdc0cb3a7982c1110b379571314728ff32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{"message":"unnecessary parentheses around assigned value","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_json_suggestion.rs","byte_start":577,"byte_end":578,"line_start":16,"line_end":16,"column_start":14,"column_end":15,"is_primary":true,"text":[{"text":"    let _a = (1 / (2 + 3));
  --> $DIR/unused_parens_json_suggestion.rs:16:14
   |
LL |     let _a = (1 / (2 + 3));
   |              ^           ^
   |
note: the lint level is defined here
  --> $DIR/unused_parens_json_suggestion.rs:10:9
   |
LL | #![deny(unused_parens)]
   |         ^^^^^^^^^^^^^
help: remove these parentheses
   |
LL -     let _a = (1 / (2 + 3));
LL +     let _a = 1 / (2 + 3);
   |

"}
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error

"}