☰
Debian Codegraph
@
0.1.5-1
/
/
tests
/
fixtures
/
invalid
/
struct-field-not-diffable.rs
☽
☼
tests/fixtures/invalid/struct-field-not-diffable.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
struct
NonDiffable
{}
4
5
#[derive(
Diffable
)]
6
struct
MyStruct
{
7
a
:
i32
,
8
b
:
NonDiffable
,
9
}
10
11
fn
main
() {
12
// MyStruct should still exist, even though the Diffable impl has errors.
13
let
_ =
MyStruct
{
a
:
0
,
b
:
NonDiffable
{} };
14
}