about summary refs log tree commit diff
path: root/src/tools
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
commit434f08884ecf2fd7ef0811956429c55359c4b195 (patch)
treec261a9c85e3c0e19a4c2b3bf5934dee54dfbe49c /src/tools
parentc2ccc855e74aec03e434405eca3c247ee2432e53 (diff)
Exclude inherent projections from some alias ty matches
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/clippy/tests/ui/issue-111399.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/issue-111399.rs b/src/tools/clippy/tests/ui/issue-111399.rs
new file mode 100644
index 00000000000..b65e6c7261a
--- /dev/null
+++ b/src/tools/clippy/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() {}