]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/privacy1-rpass.rs
add tests for 107090
[rust.git] / tests / ui / privacy / privacy1-rpass.rs
1 // run-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 pub mod test2 {
6     // This used to generate an ICE (make sure that default functions are
7     // parented to their trait to find the first private thing as the trait).
8
9     struct B;
10     trait A { fn foo(&self) {} }
11     impl A for B {}
12
13     mod tests {
14         use super::A;
15         fn foo() {
16             let a = super::B;
17             a.foo();
18         }
19     }
20 }
21
22
23 pub fn main() {}