about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0624.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0624.rs')
-rw-r--r--tests/ui/error-codes/E0624.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0624.rs b/tests/ui/error-codes/E0624.rs
new file mode 100644
index 00000000000..4c68b70fb16
--- /dev/null
+++ b/tests/ui/error-codes/E0624.rs
@@ -0,0 +1,12 @@
+mod inner {
+    pub struct Foo;
+
+    impl Foo {
+        fn method(&self) {}
+    }
+}
+
+fn main() {
+    let foo = inner::Foo;
+    foo.method(); //~ ERROR associated function `method` is private [E0624]
+}