summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/issue-113860.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/privacy/issue-113860.rs')
-rw-r--r--tests/ui/privacy/issue-113860.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/privacy/issue-113860.rs b/tests/ui/privacy/issue-113860.rs
new file mode 100644
index 000000000..b94c14fac
--- /dev/null
+++ b/tests/ui/privacy/issue-113860.rs
@@ -0,0 +1,16 @@
+#![feature(staged_api)]
+//~^ ERROR module has missing stability attribute
+
+pub trait Trait {
+ //~^ ERROR trait has missing stability attribute
+ const X: u32;
+ //~^ ERROR associated constant has missing stability attribute
+}
+
+impl Trait for u8 {
+ //~^ ERROR implementation has missing stability attribute
+ pub(self) const X: u32 = 3;
+ //~^ ERROR visibility qualifiers are not permitted here [E0449]
+}
+
+fn main() {}