]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/static-method-privacy.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / test / ui / static / 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 associated function `new` is private
10 }