rust/tests/crashes/125879.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
294 B
Rust
Raw Permalink Normal View History

2024-06-08 11:36:21 -05:00
//@ 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() {}