Skip to content

Commit

Permalink
Rollup merge of #90304 - vandenheuvel:test_issue_75961, r=Mark-Simula…
Browse files Browse the repository at this point in the history
…crum

Add regression test for #75961

Closes #75961.
Closes #21203.
  • Loading branch information
matthiaskrgr authored Oct 27, 2021
2 parents 83d5c24 + dae7c36 commit f32c09b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/ui/trait-bounds/issue-75961.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// check-pass

pub fn foo<'a>(s: &'a mut ()) where &'a mut (): Clone {
<&mut () as Clone>::clone(&s);
}

fn main() {}

0 comments on commit f32c09b

Please sign in to comment.