summaryrefslogtreecommitdiffstats
path: root/src/test/ui/trait-bounds/issue-94680.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/trait-bounds/issue-94680.rs')
-rw-r--r--src/test/ui/trait-bounds/issue-94680.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/trait-bounds/issue-94680.rs b/src/test/ui/trait-bounds/issue-94680.rs
new file mode 100644
index 000000000..58e892079
--- /dev/null
+++ b/src/test/ui/trait-bounds/issue-94680.rs
@@ -0,0 +1,14 @@
+// check-pass
+
+fn main() {
+ println!("{:?}", {
+ type T = ();
+
+ pub fn cloneit(it: &'_ mut T) -> (&'_ mut T, &'_ mut T)
+ where
+ for<'any> &'any mut T: Clone,
+ {
+ (it.clone(), it)
+ }
+ });
+}