diff options
Diffstat (limited to 'tests/ui/static/static-method-privacy.stderr')
-rw-r--r-- | tests/ui/static/static-method-privacy.stderr | 12 |
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 000000000..4be1b22fc --- /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`. |