mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
14 lines
266 B
Rust
14 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() {}
|