about summary refs log tree commit diff
path: root/tests/ui/static/static-method-privacy.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/static/static-method-privacy.stderr')
-rw-r--r--tests/ui/static/static-method-privacy.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/static/static-method-privacy.stderr b/tests/ui/static/static-method-privacy.stderr
new file mode 100644
index 00000000000..4be1b22fc6b
--- /dev/null
+++ b/tests/ui/static/static-method-privacy.stderr
@@ -0,0 +1,12 @@
+error[E0624]: associated function `new` is private
+  --> $DIR/static-method-privacy.rs:9:19
+   |
+LL |         fn new() -> S { S }
+   |         ------------- private associated function defined here
+...
+LL |     let _ = a::S::new();
+   |                   ^^^ private associated function
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0624`.