Debian Codegraph @

tests/fixtures/invalid/struct-specified-multiple-times.rs

raw symbols SCIP
1 use daft::Diffable;
2
3 #[derive(Diffable)]
4 #[daft(leaf, leaf, leaf)]
5 struct MyStruct {
6 a: i32,
7 b: String,
8 }
9
10 #[derive(Diffable)]
11 #[daft(leaf)]
12 #[daft(leaf)]
13 #[daft(leaf)]
14 struct MyStruct2 {
15 a: i32,
16 b: String,
17 }
18
19 fn main() {
20 // MyStruct and MyStruct2 should still exist, even though the Diffable impl
21 // couldn't be generated.
22 let _ = MyStruct { a: 0, b: "foo".to_string() };
23 let _ = MyStruct2 { a: 0, b: "foo".to_string() };
24 }