Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Syntax changes from C++11 to C++20. Parent comment
fn main() { let mut v = vec![1, 2, 3]; v.drop(); }
Compiling playground v0.0.1 (/playground) error[E0040]: explicit use of destructor method --> src/main.rs:4:7 | 4 | v.drop(); | ^^^^ | | | explicit destructor calls not allowed | help: consider using `drop` function: `drop(v)` error: aborting due to previous error
Your parent's point is that this is kind of a weird corner case that only applies to drop.
Your parent's point is that this is kind of a weird corner case that only applies to drop.