summary refs log tree commit diff
path: root/src/test/ui/xc-private-method2.rs
blob: 6d73570318ae8b0ebcd5152641ee90bfae71d633 (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{ x: 10 }.meth_struct();
    //~^ ERROR method `meth_struct` is private

    let _ = xc_private_method_lib::Enum::Variant1(20).meth_enum();
    //~^ ERROR method `meth_enum` is private
}