about summary refs log tree commit diff
path: root/tests/ui/frontmatter/frontmatter-whitespace-2.stderr
blob: 2ae63cdc6fe483d199c15697a551f0d0f4da411e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
error: unclosed frontmatter
  --> $DIR/frontmatter-whitespace-2.rs:1:1
   |
LL | / ---cargo
...  |
LL | |
   | |_^
   |
note: frontmatter opening here was not closed
  --> $DIR/frontmatter-whitespace-2.rs:1:1
   |
LL | ---cargo
   | ^^^

warning: use of a double negation
  --> $DIR/frontmatter-whitespace-2.rs:9:6
   |
LL |     ---x
   |      ^^^
   |
   = note: the prefix `--` could be misinterpreted as a decrement operator which exists in other languages
   = note: use `-= 1` if you meant to decrement the value
   = note: `#[warn(double_negations)]` on by default
help: add parentheses for clarity
   |
LL |     --(-x)
   |       +  +

error: aborting due to 1 previous error; 1 warning emitted