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

8 lines
122 B
Rust
Raw Normal View History

2021-10-26 05:33:49 -05:00
// check-pass
pub fn foo<'a>(s: &'a mut ()) where &'a mut (): Clone {
<&mut () as Clone>::clone(&s);
}
fn main() {}