Rollup merge of #90304 - vandenheuvel:test_issue_75961, r=Mark-Simulacrum

Add regression test for #75961

Closes #75961.
Closes #21203.
This commit is contained in:
Matthias Krüger 2021-10-27 18:25:46 +02:00 committed by GitHub
commit f32c09b82a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// check-pass
pub fn foo<'a>(s: &'a mut ()) where &'a mut (): Clone {
<&mut () as Clone>::clone(&s);
}
fn main() {}