mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-06 12:04:36 +00:00
Add regression test for #75961
This commit is contained in:
parent
1b61b1b445
commit
dae7c36b42
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…
Reference in New Issue
Block a user