rust/tests/ui/deriving/deriving-in-fn.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
171 B
Rust
Raw Normal View History

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