☰
Debian Codegraph
@
0.1.0-1
/
/
tests
/
ui
/
fail
/
duplicated_struct.rs
☽
☼
tests/ui/fail/duplicated_struct.rs
code
plain
raw
symbols
SCIP
Apache-2.0
2019-2025 Steve Springett <
[email protected]
>; 2019-2025 Amy Keibler <
[email protected]
>; 2019-2025 Sergey "Shnatsel" Davidoff <
[email protected]
>
debian/copyright
1
use
cyclonedx_bom_macros::versioned;
2
3
#[versioned(
"1.0"
,
"2.0"
)]
4
mod
base {
5
// Define `Foo` for 1.0 twice
6
#[versioned(
"1.0"
)]
7
pub
struct
Foo
;
8
9
#[versioned(
"1.0"
)]
10
pub
struct
Foo
;
11
}
12
13
fn
main
() {
14
let
_ = v1_0::
Foo
;
15
}