pinned-init 0.0.10

Library to facilitate safe pinned initialization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![cfg_attr(not(RUSTC_LINT_REASONS_IS_STABLE), feature(lint_reasons))]

#[test]
#[cfg_attr(not(UI_TESTS), ignore)]
fn ui_compile_fail() {
    let test_cases = trybuild::TestCases::new();
    test_cases.compile_fail("tests/ui/compile-fail/pinned_drop/*.rs");
    test_cases.compile_fail("tests/ui/compile-fail/pin_data/*.rs");
    test_cases.compile_fail("tests/ui/compile-fail/init/*.rs");
    test_cases.compile_fail("tests/ui/compile-fail/zeroable/*.rs");
}

#[test]
#[cfg_attr(not(UI_TESTS), ignore)]
fn ui_expand() {
    macrotest::expand("tests/ui/expand/*.rs");
}