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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
251 B
Rust
Raw Normal View History

2022-06-11 21:31:33 +00: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)
}
});
}