blob: 0e0e496dde234b6f7c33eb8c1a858ac2f3010624 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
mod orange {
mod green {
struct Foo;
pub(in orange) struct Bar;
pub struct Baz;
}
fn brown() {
let _ = green::Foo; // { dg-error "definition is private in this context" }
let _ = green::Bar;
let _ = green::Baz;
let _: green::Foo; // { dg-error "definition is private in this context" }
fn any(a0: green::Foo, a1: green::Bar) {} // { dg-error "20:definition is private in this context" }
}
}
|