mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
19 lines
294 B
Rust
19 lines
294 B
Rust
|
//@ 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() {}
|