Closed
Description
Spawned off of #24000
fn main() {
let x = [5; 100];
foo(x);
}
fn foo<X: Copy>(x: X) { let _ = bar(x); }
fn bar<X:Clone>(x: X) { let _ = x.clone(); }
causes this ICE:
<anon>:8:33: 8:42 error: internal compiler error: Encountered error `Unimplemented` selecting `Binder(core::clone::Clone)` during trans
<anon>:8 fn bar<X:Clone>(x: X) { let _ = x.clone(); }
^~~~~~~~~
note: the compiler unexpectedly panicked. this is a bug.