about summary refs log tree commit diff
path: root/tests/ui/deriving/deriving-in-fn.rs
blob: 13f3d39597ce37978a0f0a84a0a4120d4614644d (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 };
    let _ = format!("{:?}", f);
}