☰
Debian Codegraph
@
0.1.5-1
/
/
tests
/
fixtures
/
invalid
/
field-unknown-attribute.rs
☽
☼
tests/fixtures/invalid/field-unknown-attribute.rs
code
plain
raw
symbols
SCIP
MIT
or
Apache-2.0
2016 Alex Crichton; 2017 The Tokio Authors; 2024 Oxide Computer Company
debian/copyright
1
use
daft::
Diffable
;
2
3
#[derive(
Diffable
)]
4
struct
MyStruct
{
5
#[daft(foo)]
6
a
:
i32
,
7
#[daft(bar)]
8
b
:
String
,
9
}
10
11
fn
main
() {
12
// MyStruct should still exist, even though the Diffable impl couldn't be
13
// generated.
14
let
_ =
MyStruct
{
a
:
0
,
b
:
"foo"
.
to_string
() };
15
}