about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/issue-111399.rs
blob: 2a6436b4b4eb5c9b0e19dcbb9a3ff910395f038f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ 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() {}