blob: a018547e920b7765f6ed7139bb4fda81a56c3370 [file]
#![warn(clippy::mem_replace_option_with_none)]
#![no_std]
use core::mem;
fn it_works() {
let mut an_option = Some(1);
let _ = an_option.take();
//~^ mem_replace_option_with_none
let an_option = &mut Some(1);
let _ = an_option.take();
//~^ mem_replace_option_with_none
}