mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
Exclude inherent projections from some alias ty matches
This commit is contained in:
parent
506b50ee39
commit
0eb364b8d6
13
tests/ui/issue-111399.rs
Normal file
13
tests/ui/issue-111399.rs
Normal file
@ -0,0 +1,13 @@
|
||||
#![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() {}
|
Loading…
Reference in New Issue
Block a user