about summary refs log tree commit diff
path: root/tests/ui/unsafe-fields-parse.stderr
blob: 5a45ab03ffe057725a2e41f9cd74e9921a8096f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: expected type, found keyword `unsafe`
  --> $DIR/unsafe-fields-parse.rs:7:15
   |
LL | enum A {
   |      - while parsing this enum
LL |     TupleLike(unsafe u32),
   |               ^^^^^^ expected type
   |
   = help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`

error: expected type, found keyword `unsafe`
  --> $DIR/unsafe-fields-parse.rs:10:10
   |
LL | struct B(unsafe u32);
   |          ^^^^^^ expected type

error: aborting due to 2 previous errors