Debian Codegraph @

tests/fixtures/invalid/field-attribute-with-value.rs

raw symbols SCIP
1 use daft::Diffable;
2
3 #[derive(Diffable)]
4 struct MyStruct {
5 // We accept just `leaf`, not `leaf = true`.
6 #[daft(leaf = true)]
7 a: i32,
8 #[daft(ignore = "yes")]
9 b: String,
10 }
11
12 fn main() {
13 // MyStruct should still exist, even though the Diffable impl couldn't be
14 // generated.
15 let _ = MyStruct { a: 0, b: "foo".to_string() };
16 }