Skip to content

Commit 0eb364b

Browse files
committed
Exclude inherent projections from some alias ty matches
1 parent 506b50e commit 0eb364b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/ui/issue-111399.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#![feature(inherent_associated_types)]
2+
#![allow(incomplete_features)]
3+
4+
// Check that rustc doesn't crash on the trait bound `Self::Ty: std::marker::Freeze`.
5+
6+
pub struct Struct;
7+
8+
impl Struct {
9+
pub type Ty = usize;
10+
pub const CT: Self::Ty = 42;
11+
}
12+
13+
fn main() {}

0 commit comments

Comments
 (0)