about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-101477-enum.stderr
blob: c6dadeab8b33f4370dec36ba13fd73e1f1aa297c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error: unexpected `==`
  --> $DIR/issue-101477-enum.rs:6:7
   |
LL |     B == 2
   |       ^^
   |
   = help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
help: try using `=` instead
   |
LL -     B == 2
LL +     B = 2
   |

error: expected item, found `==`
  --> $DIR/issue-101477-enum.rs:6:7
   |
LL |     B == 2
   |       ^^ expected item
   |
   = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>

error: aborting due to 2 previous errors