summaryrefslogtreecommitdiffstats
path: root/tests/ui/deriving/deriving-in-fn.rs
blob: 07f91d059735623a416b00b41898211089c05bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass

#![allow(dead_code)]

pub fn main() {
    #[derive(Debug)]
    struct Foo {
        foo: isize,
    }

    let f = Foo { foo: 10 };
    format!("{:?}", f);
}