summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pub/pub-restricted.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/pub/pub-restricted.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/pub/pub-restricted.stderr')
-rw-r--r--src/test/ui/pub/pub-restricted.stderr65
1 files changed, 0 insertions, 65 deletions
diff --git a/src/test/ui/pub/pub-restricted.stderr b/src/test/ui/pub/pub-restricted.stderr
deleted file mode 100644
index 4694530e5..000000000
--- a/src/test/ui/pub/pub-restricted.stderr
+++ /dev/null
@@ -1,65 +0,0 @@
-error[E0704]: incorrect visibility restriction
- --> $DIR/pub-restricted.rs:3:6
- |
-LL | pub (a) fn afn() {}
- | ^ help: make this visible only to module `a` with `in`: `in a`
- |
- = help: some possible visibility restrictions are:
- `pub(crate)`: visible only on the current crate
- `pub(super)`: visible only in the current module's parent
- `pub(in path::to::module)`: visible only on the specified path
-
-error[E0704]: incorrect visibility restriction
- --> $DIR/pub-restricted.rs:4:6
- |
-LL | pub (b) fn bfn() {}
- | ^ help: make this visible only to module `b` with `in`: `in b`
- |
- = help: some possible visibility restrictions are:
- `pub(crate)`: visible only on the current crate
- `pub(super)`: visible only in the current module's parent
- `pub(in path::to::module)`: visible only on the specified path
-
-error[E0704]: incorrect visibility restriction
- --> $DIR/pub-restricted.rs:5:6
- |
-LL | pub (crate::a) fn cfn() {}
- | ^^^^^^^^ help: make this visible only to module `crate::a` with `in`: `in crate::a`
- |
- = help: some possible visibility restrictions are:
- `pub(crate)`: visible only on the current crate
- `pub(super)`: visible only in the current module's parent
- `pub(in path::to::module)`: visible only on the specified path
-
-error[E0704]: incorrect visibility restriction
- --> $DIR/pub-restricted.rs:22:14
- |
-LL | pub (a) invalid: usize,
- | ^ help: make this visible only to module `a` with `in`: `in a`
- |
- = help: some possible visibility restrictions are:
- `pub(crate)`: visible only on the current crate
- `pub(super)`: visible only in the current module's parent
- `pub(in path::to::module)`: visible only on the specified path
-
-error[E0704]: incorrect visibility restriction
- --> $DIR/pub-restricted.rs:31:6
- |
-LL | pub (xyz) fn xyz() {}
- | ^^^ help: make this visible only to module `xyz` with `in`: `in xyz`
- |
- = help: some possible visibility restrictions are:
- `pub(crate)`: visible only on the current crate
- `pub(super)`: visible only in the current module's parent
- `pub(in path::to::module)`: visible only on the specified path
-
-error[E0742]: visibilities can only be restricted to ancestor modules
- --> $DIR/pub-restricted.rs:23:17
- |
-LL | pub (in x) non_parent_invalid: usize,
- | ^
-
-error: aborting due to 6 previous errors
-
-Some errors have detailed explanations: E0704, E0742.
-For more information about an error, try `rustc --explain E0704`.