rust/src/test/ui/deriving/deriving-in-fn.rs
2019-07-27 18:56:16 +03:00

11 lines
148 B
Rust

// run-pass
pub fn main() {
#[derive(Debug)]
struct Foo {
foo: isize,
}
let f = Foo { foo: 10 };
format!("{:?}", f);
}