summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-65230.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-65230.rs')
-rw-r--r--tests/ui/issues/issue-65230.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-65230.rs b/tests/ui/issues/issue-65230.rs
new file mode 100644
index 000000000..54141d221
--- /dev/null
+++ b/tests/ui/issues/issue-65230.rs
@@ -0,0 +1,11 @@
+trait T0 {}
+trait T1: T0 {}
+
+trait T2 {}
+
+impl<'a> T0 for &'a (dyn T2 + 'static) {}
+
+impl T1 for &dyn T2 {}
+//~^ ERROR mismatched types
+
+fn main() {}