rust/tests/ui/trait-bounds/issue-94680.rs

15 lines
251 B
Rust
Raw Normal View History

2022-06-11 16:31:33 -05:00
// 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)
}
});
}