mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
18 lines
232 B
Rust
18 lines
232 B
Rust
|
struct SizedStruct {
|
||
|
_a: i32,
|
||
|
}
|
||
|
|
||
|
struct UnsizedStruct {
|
||
|
_a: [i32],
|
||
|
}
|
||
|
|
||
|
struct StructWithVecBox {
|
||
|
sized_type: Vec<Box<SizedStruct>>,
|
||
|
}
|
||
|
|
||
|
struct StructWithVecBoxButItsUnsized {
|
||
|
unsized_type: Vec<Box<UnsizedStruct>>,
|
||
|
}
|
||
|
|
||
|
fn main() {}
|