Closed
Description
uncommenting the drop impl in the following program causes it to not compile
struct Foo;
/*
impl Drop for Foo {
fn drop(&mut self) { }
}
*/
const fn new(_: Foo) { }
if the definition of Foo
were in another crate, adding that Drop
impl would break compilation of the crate with the const fn
.
cc @Centril
I don't think adding a drop impl was a breaking change before const fn
. But maybe I just can't come up with an example.