mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
17 lines
471 B
Plaintext
17 lines
471 B
Plaintext
error: `default` is not followed by an item
|
|
--> $DIR/keyword-order.rs:3:1
|
|
|
|
|
LL | default pub const async unsafe extern fn err() {}
|
|
| ^^^^^^^ the `default` qualifier
|
|
|
|
|
= note: only `fn`, `const`, `type`, or `impl` items may be prefixed by `default`
|
|
|
|
error: expected item, found keyword `pub`
|
|
--> $DIR/keyword-order.rs:3:9
|
|
|
|
|
LL | default pub const async unsafe extern fn err() {}
|
|
| ^^^ expected item
|
|
|
|
error: aborting due to 2 previous errors
|
|
|