mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-04 05:57:36 +00:00
19 lines
537 B
Plaintext
19 lines
537 B
Plaintext
![]() |
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
|
||
|
|