Exclude inherent projections from some alias ty matches

This commit is contained in:
León Orell Valerian Liehr 2023-05-17 19:47:23 +02:00
parent 506b50ee39
commit 0eb364b8d6

13
tests/ui/issue-111399.rs Normal file
View 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() {}