summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/xc-private-method.rs
blob: f05994646b3c489bb1882db2dd605457225856f8 (plain)
1
2
3
4
5
6
7
8
9
10
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
}