☰
Debian Codegraph
@
0.1.5-1
/
/
tests
/
fixtures
/
invalid
/
struct-unknown-attribute-multiple.rs
☽
☼
tests/fixtures/invalid/struct-unknown-attribute-multiple.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
#[daft(ignore, leaf, leaf)]
5
struct
MyStruct
{
6
a
:
i32
,
7
b
:
String
,
8
}
9
10
fn
main
() {
11
// MyStruct should still exist, even though the Diffable impl couldn't be
12
// generated.
13
let
_ =
MyStruct
{
a
:
0
,
b
:
"foo"
.
to_string
() };
14
}