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

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

8 lines
122 B
Rust
Raw Normal View History

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