fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
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