about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2023-05-17 19:47:23 +0200
committerLeón Orell Valerian Liehr <me@fmease.dev>2023-05-17 23:53:58 +0200
commit0eb364b8d6f6b77f0c43467d81867f7a196a1794 (patch)
tree4bdf29bfe7186b4842df4677d327600301287650
parent506b50ee39229772305c9e279f6609cf4546d569 (diff)
downloadrust-0eb364b8d6f6b77f0c43467d81867f7a196a1794.tar.gz
rust-0eb364b8d6f6b77f0c43467d81867f7a196a1794.zip
Exclude inherent projections from some alias ty matches
-rw-r--r--tests/ui/issue-111399.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/issue-111399.rs b/tests/ui/issue-111399.rs
new file mode 100644
index 00000000000..b65e6c7261a
--- /dev/null
+++ b/tests/ui/issue-111399.rs
@@ -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() {}