blob: d3b140c8528606d9f7e851b6e209900300b53c6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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
|