]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/keyword-order.stderr
Rollup merge of #100479 - compiler-errors:argument-type-error-improvements, r=lcnr
[rust.git] / src / test / ui / fn / keyword-order.stderr
1 error: `default` is not followed by an item
2   --> $DIR/keyword-order.rs:3:1
3    |
4 LL | default pub const async unsafe extern fn err() {}
5    | ^^^^^^^ the `default` qualifier
6    |
7    = note: only `fn`, `const`, `type`, or `impl` items may be prefixed by `default`
8
9 error: expected item, found keyword `pub`
10   --> $DIR/keyword-order.rs:3:9
11    |
12 LL | default pub const async unsafe extern fn err() {}
13    |         ^^^ expected item
14
15 error: aborting due to 2 previous errors
16