diff options
Diffstat (limited to 'tests/ui/privacy/private-method.stderr')
-rw-r--r-- | tests/ui/privacy/private-method.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/privacy/private-method.stderr b/tests/ui/privacy/private-method.stderr new file mode 100644 index 000000000..17c7179dc --- /dev/null +++ b/tests/ui/privacy/private-method.stderr @@ -0,0 +1,12 @@ +error[E0624]: associated function `nap` is private + --> $DIR/private-method.rs:22:8 + | +LL | fn nap(&self) {} + | ------------- private associated function defined here +... +LL | nyan.nap(); + | ^^^ private associated function + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0624`. |