2022-05-02 04:14:43 -05:00
|
|
|
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
|
2023-09-05 22:35:07 -05:00
|
|
|
|
|
|
|
|
= note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
|
2022-05-02 04:14:43 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|