]> git.lizzy.rs Git - rust.git/blob - tests/ui/deriving/deriving-in-fn.rs
Rollup merge of #107427 - detrumi:builtin-impl-candidates, r=compiler-errors
[rust.git] / tests / ui / deriving / deriving-in-fn.rs
1 // run-pass
2
3 #![allow(dead_code)]
4
5 pub fn main() {
6     #[derive(Debug)]
7     struct Foo {
8         foo: isize,
9     }
10
11     let f = Foo { foo: 10 };
12     format!("{:?}", f);
13 }