fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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 | 15 = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html> 16 17error: aborting due to 2 previous errors 18