blob: 4318842e455189796d97e11b0b26b3d83657a6e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//@ known-bug: rust-lang/rust#125879
#![feature(inherent_associated_types)]
#![allow(incomplete_features)]
pub type PubAlias0 = PubTy::PrivAssocTy;
pub struct PubTy;
impl PubTy {
type PrivAssocTy = ();
}
pub struct S(pub PubAlias0);
pub unsafe fn foo(a: S) -> S {
a
}
fn main() {}
|