blob: 1ab91492b9c37b9733b27bf243a1396208996d90 [file]
//@ run-rustfix
// https://github.com/rust-lang/rust/issues/164044
macro_rules! generated {
() => {
drop(vec![3_u8]); //~ ERROR explicit use of destructor method
//~| HELP consider using `drop` function
};
}
fn main() {
drop(vec![1_u8]); //~ ERROR explicit use of destructor method
//~| HELP consider using `drop` function
drop(vec![2_u8]); //~ ERROR explicit use of destructor method
//~| HELP consider using `drop` function
generated!();
}