summary refs log tree commit diff
path: root/src/test/compile-fail/xc-private-method.rs
blob: e8777a0a9f256ba5d866b225383b7ed4ed47b98a (plain)
1
2
3
4
5
6
7
8
// xfail-fast
// aux-build:xc_private_method_lib.rs

extern mod xc_private_method_lib;

fn main() {
    let _ = xc_private_method_lib::Foo::new();  //~ ERROR function `new` is private
}