about summary refs log tree commit diff
path: root/tests/ui/trait-bounds/issue-94680.rs
blob: 7937ce9eadf23182c9e74f767fdc9106a7788fa2 (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)
        }
    });
}