fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
437 B16 linesraw
1error: visibility `pub(crate)` is not followed by an item
2  --> $DIR/pub-restricted-error-fn.rs:1:1
3   |
4LL | pub(crate) () fn foo() {}
5   | ^^^^^^^^^^ the visibility
6   |
7   = help: you likely meant to define an item, e.g., `pub(crate) fn foo() {}`
8
9error: expected item, found `(`
10  --> $DIR/pub-restricted-error-fn.rs:1:12
11   |
12LL | pub(crate) () fn foo() {}
13   |            ^ expected item
14
15error: aborting due to 2 previous errors
16