rust/src/test/ui/deriving/deriving-in-fn.rs

11 lines
148 B
Rust
Raw Normal View History

// run-pass
pub fn main() {
2015-01-28 07:34:18 -06:00
#[derive(Debug)]
struct Foo {
foo: isize,
}
let f = Foo { foo: 10 };
format!("{:?}", f);
}