]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-inherent-types/assoc-inherent-private.rs
Rollup merge of #106707 - ehuss:remove-dupe-sha-1, r=Mark-Simulacrum
[rust.git] / tests / ui / associated-inherent-types / assoc-inherent-private.rs
1 #![feature(inherent_associated_types)]
2 #![allow(incomplete_features)]
3
4 mod m {
5     pub struct T;
6     impl T {
7         type P = ();
8     }
9 }
10 type U = m::T::P; //~ ERROR associated type `P` is private
11
12 mod n {
13     pub mod n {
14         pub struct T;
15         impl T {
16             pub(super) type P = bool;
17         }
18     }
19     type U = n::T::P;
20 }
21 type V = n::n::T::P; //~ ERROR associated type `P` is private
22
23 fn main() {}