[go: up one dir, main page]

darling 0.20.11

A proc-macro library for reading attributes into structs when implementing custom derives.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![cfg(compiletests)]

#[rustversion::stable(1.77)]
#[test]
fn compile_test() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/compile-fail/*.rs");
}

#[rustversion::not(stable(1.77))]
#[test]
fn wrong_rustc_version() {
    panic!(
        "This is not the expected version of rustc. Error messages vary across compiler versions so tests may produce spurious errors"
    );
}