Add regression test for #75961
This commit is contained in:
parent
1b61b1b445
commit
dae7c36b42
1 changed files with 7 additions and 0 deletions
7
src/test/ui/trait-bounds/issue-75961.rs
Normal file
7
src/test/ui/trait-bounds/issue-75961.rs
Normal 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() {}
|
Loading…
Add table
Add a link
Reference in a new issue