summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-34751.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-34751.rs')
-rw-r--r--src/test/ui/issues/issue-34751.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-34751.rs b/src/test/ui/issues/issue-34751.rs
new file mode 100644
index 000000000..6309c0a02
--- /dev/null
+++ b/src/test/ui/issues/issue-34751.rs
@@ -0,0 +1,11 @@
+// check-pass
+#![allow(dead_code)]
+// #34751 ICE: 'rustc' panicked at 'assertion failed: !substs.has_regions_escaping_depth(0)'
+
+#[allow(dead_code)]
+
+use std::marker::PhantomData;
+
+fn f<'a>(PhantomData::<&'a u8>: PhantomData<&'a u8>) {}
+
+fn main() {}