diff options
Diffstat (limited to 'tests/ui/privacy/private-field-ty-err.stderr')
-rw-r--r-- | tests/ui/privacy/private-field-ty-err.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/privacy/private-field-ty-err.stderr b/tests/ui/privacy/private-field-ty-err.stderr new file mode 100644 index 000000000..98ba7856e --- /dev/null +++ b/tests/ui/privacy/private-field-ty-err.stderr @@ -0,0 +1,9 @@ +error[E0616]: field `len` of struct `Foo` is private + --> $DIR/private-field-ty-err.rs:3:10 + | +LL | if x.len { + | ^^^ private field + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0616`. |