Add regression test for #75961

This commit is contained in:
Bram van den Heuvel 2021-10-26 12:33:49 +02:00
parent 1b61b1b445
commit dae7c36b42

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() {}