summaryrefslogtreecommitdiffstats
path: root/src/test/ui/trait-bounds/issue-94680.rs
blob: 58e892079e65fda938ec3e7405d665e6cee9e92f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
        }
    });
}