blob: 2b041d4e1be20a7e6058d1db8a2298d7245d902a [file] [log] [blame]
//@ check-pass
#![feature(inherent_associated_types)]
#![expect(incomplete_features)]
pub type PubAlias0 = PubTy::PrivAssocTy;
//~^ WARN: associated type `PubTy::PrivAssocTy` is more private than the item `PubAlias0`
pub struct PubTy;
impl PubTy {
type PrivAssocTy = ();
}
pub struct S(pub PubAlias0);
//~^ WARN: associated type `PubTy::PrivAssocTy` is more private than the item `S::0`
pub unsafe fn foo(a: S) -> S {
a
}
fn main() {}