#![no_std]
#![warn(clippy::manual_take)]

pub fn manual_mem_take_should_reference_core() {
    let mut x = true;

    let _lint_negated = !core::mem::take(&mut x);

    let _lint = core::mem::take(&mut x);
}
