diff options
| author | Makai <m4kai410@gmail.com> | 2025-08-13 20:22:18 +0800 |
|---|---|---|
| committer | Makai <m4kai410@gmail.com> | 2025-08-13 20:22:18 +0800 |
| commit | 0c8485f02332f18a41f93ecd1cc3e9611040238b (patch) | |
| tree | 2c7d9cbc54544e76e3c67f4aeb69d2a8bd12fcfe /tests/ui/rust-2018 | |
| parent | 577166503aee7290e09374da21f4045c455acfd5 (diff) | |
| download | rust-0c8485f02332f18a41f93ecd1cc3e9611040238b.tar.gz rust-0c8485f02332f18a41f93ecd1cc3e9611040238b.zip | |
suggest using `pub(crate)` for E0364
Diffstat (limited to 'tests/ui/rust-2018')
| -rw-r--r-- | tests/ui/rust-2018/uniform-paths/macro-rules.stderr | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/rust-2018/uniform-paths/macro-rules.stderr b/tests/ui/rust-2018/uniform-paths/macro-rules.stderr index 661d667eb9a..43eacd5413f 100644 --- a/tests/ui/rust-2018/uniform-paths/macro-rules.stderr +++ b/tests/ui/rust-2018/uniform-paths/macro-rules.stderr @@ -9,6 +9,10 @@ help: consider adding a `#[macro_export]` to the macro in the imported module | LL | macro_rules! legacy_macro { () => () } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +help: in case you want to use the macro within this crate only, reduce the visibility to `pub(crate)` + | +LL | pub(crate) use legacy_macro as _; + | +++++++ error: aborting due to 1 previous error |
