blob: 1de29559d3c0362a19ef3ae3b5ae74d121a7c0ea [file]
//@ check-pass
#![feature(inherent_associated_types)]
#![expect(incomplete_features)]
// Check that rustc doesn't crash on the trait bound `Self::Ty: std::marker::Freeze`.
pub struct Struct;
impl Struct {
pub type Ty = usize;
pub const CT: Self::Ty = 42;
}
fn main() {}