Debian Codegraph @

tests/test_repr.rs

raw symbols SCIP
1 #![allow(clippy::extra_unused_type_parameters)]
2
3 mod droprust-analyzer cargo anyhow 1.0.103 drop/;
4
5 use selfrust-analyzer cargo anyhow 1.0.103 crate/::droprust-analyzer cargo anyhow 1.0.103 drop/::{DetectDroprust-analyzer cargo anyhow 1.0.103 drop/DetectDrop#, Flagrust-analyzer cargo anyhow 1.0.103 drop/Flag#};
6 use anyhowrust-analyzer cargo anyhow 1.0.103 crate/::Errorrust-analyzer cargo anyhow 1.0.103 Error#;
7 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/;
8
9 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
10 fn test_error_sizerust-analyzer cargo anyhow 1.0.103 test_error_size().() {
11 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<Errorrust-analyzer cargo anyhow 1.0.103 Error#>(), memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<usize>());
12 }
13
14 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
15 fn test_null_pointer_optimizationrust-analyzer cargo anyhow 1.0.103 test_null_pointer_optimization().() {
16 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo anyhow 1.0.103 Error#>>(), memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<usize>());
17 }
18
19 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
20 fn test_autotraitsrust-analyzer cargo anyhow 1.0.103 test_autotraits().() {
21 fn assertrust-analyzer cargo anyhow 1.0.103 assert().<E: Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin# + Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send# + Syncrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sync# + 'static>() {}
22 assertrust-analyzer cargo anyhow 1.0.103 assert().::<Errorrust-analyzer cargo anyhow 1.0.103 Error#>();
23 }
24
25 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
26 fn test_droprust-analyzer cargo anyhow 1.0.103 test_drop().() {
27 let has_dropped = Flagrust-analyzer cargo anyhow 1.0.103 drop/Flag#::newrust-analyzer cargo anyhow 1.0.103 drop/impl#[Flag]new().();
28 droprust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/drop().(Errorrust-analyzer cargo anyhow 1.0.103 Error#::newrust-analyzer cargo anyhow 1.0.103 error/impl#[Error]new().(DetectDroprust-analyzer cargo anyhow 1.0.103 drop/DetectDrop#::newrust-analyzer cargo anyhow 1.0.103 drop/impl#[DetectDrop]new().(&has_dropped)));
29 assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(has_dropped.getrust-analyzer cargo anyhow 1.0.103 drop/impl#[Flag]get().());
30 }