rust/tests/ui/privacy/xc-private-method.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
352 B
Rust
Raw Normal View History

//@ aux-build:xc-private-method-lib.rs
extern crate xc_private_method_lib;
fn main() {
let _ = xc_private_method_lib::Struct::static_meth_struct();
2020-03-05 03:03:15 +00:00
//~^ ERROR: associated function `static_meth_struct` is private
2013-08-07 12:29:29 +00:00
let _ = xc_private_method_lib::Enum::static_meth_enum();
2020-03-05 03:03:15 +00:00
//~^ ERROR: associated function `static_meth_enum` is private
}