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
180 B
Rust
Raw Permalink Normal View History

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