]> git.proxmox.com Git - rustc.git/blob - src/test/compile-fail/static-method-privacy.rs
Imported Upstream version 0.7
[rustc.git] / src / test / compile-fail / static-method-privacy.rs
1 mod a {
2 pub struct S;
3 impl S {
4 fn new() -> S { S }
5 }
6 }
7
8 fn main() {
9 let _ = a::S::new(); //~ ERROR function `new` is private
10 }