blob: bcf508d9af5d73790861d305a2daee37db3e811c [file] [log] [blame]
// Test ensuring that `dbg!(expr)` will take ownership of the argument.
#![feature(dbg_macro)]
#[derive(Debug)]
struct NoCopy(usize);
fn main() {
let a = NoCopy(0);
let _ = dbg!(a);
let _ = dbg!(a);
}