Fix E0796: Destructor Names Must Not Be Used Outside of Their Trait
Rust compiler error E0796 occurs when attempting to manually invoke or reference a type's destructor by name outside of the Drop trait implementation.
2 articles
Rust compiler error E0796 occurs when attempting to manually invoke or reference a type's destructor by name outside of the Drop trait implementation.
E0745 occurs when a function returns a reference to a local variable that would be dropped, causing a dangling reference.