Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f32c09b

Browse files
authored
Rollup merge of rust-lang#90304 - vandenheuvel:test_issue_75961, r=Mark-Simulacrum
Add regression test for rust-lang#75961 Closes rust-lang#75961. Closes rust-lang#21203.
2 parents 83d5c24 + dae7c36 commit f32c09b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// check-pass
2+
3+
pub fn foo<'a>(s: &'a mut ()) where &'a mut (): Clone {
4+
<&mut () as Clone>::clone(&s);
5+
}
6+
7+
fn main() {}

0 commit comments

Comments
 (0)