News for hackers. Stuff that matters.
Re:Syntax changes from C++11 to C++20 by steveklabnik on Tuesday August 04, 2020 @01:41PM (#24052483)
To be clear, it won't compile in Rust either; you cannot invoke Drop::drop yourself:

    fn main() {
        let mut v = vec![1, 2, 3];
        
        v.drop();
    }
building:

       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
std::mem::drop, which it refers to, does take by owner.

Your parent's point is that this is kind of a weird corner case that only applies to drop.

Re:Syntax changes from C++11 to C++20 by saghm on Tuesday August 04, 2020 @04:20PM (#24054095)
Oh, interesting! I had never tried to call it manually, so I didn't realize that it wouldn't let me.