rust/tests/ui/issue-111399.rs
2025-02-15 13:38:16 +01:00

15 lines
282 B
Rust

//@ check-pass
#![feature(inherent_associated_types)]
#![allow(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() {}