diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/xc-private-method.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/xc-private-method.rs b/src/test/ui/xc-private-method.rs new file mode 100644 index 000000000..f05994646 --- /dev/null +++ b/src/test/ui/xc-private-method.rs @@ -0,0 +1,11 @@ +// aux-build:xc-private-method-lib.rs + +extern crate xc_private_method_lib; + +fn main() { + let _ = xc_private_method_lib::Struct::static_meth_struct(); + //~^ ERROR: associated function `static_meth_struct` is private + + let _ = xc_private_method_lib::Enum::static_meth_enum(); + //~^ ERROR: associated function `static_meth_enum` is private +} |