rust-clippy/tests/ui/issue-111399.rs
2023-05-17 23:53:58 +02:00

13 lines
266 B
Rust

#![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() {}