fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
678 B28 linesraw
1error: `default` is not followed by an item
2  --> $DIR/default-unmatched-extern.rs:5:5
3   |
4LL |     default do
5   |     ^^^^^^^ the `default` qualifier
6   |
7   = note: only `fn`, `const`, `type`, or `impl` items may be prefixed by `default`
8
9error: non-item in item list
10  --> $DIR/default-unmatched-extern.rs:5:13
11   |
12LL | extern "C" {
13   |            - item list starts here
14LL |     default!();
15LL |     default do
16   |             ^^ non-item starts here
17...
18LL | }
19   | - item list ends here
20
21error: cannot find macro `default` in this scope
22  --> $DIR/default-unmatched-extern.rs:4:5
23   |
24LL |     default!();
25   |     ^^^^^^^
26
27error: aborting due to 3 previous errors
28