summaryrefslogtreecommitdiffstats
path: root/src/test/ui/static/static-method-privacy.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/static/static-method-privacy.stderr')
-rw-r--r--src/test/ui/static/static-method-privacy.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/static/static-method-privacy.stderr b/src/test/ui/static/static-method-privacy.stderr
new file mode 100644
index 000000000..4be1b22fc
--- /dev/null
+++ b/src/test/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`.