2021-10-19 15:53:42 +02:00
|
|
|
#[rustversion::stable(1.46)] // MSRV
|
2020-04-26 21:11:16 +02:00
|
|
|
#[test]
|
|
|
|
fn compile_macros() {
|
|
|
|
let t = trybuild::TestCases::new();
|
|
|
|
t.pass("tests/trybuild/main-01-basic.rs");
|
|
|
|
t.compile_fail("tests/trybuild/main-02-only-async.rs");
|
2021-02-02 03:07:58 +01:00
|
|
|
t.pass("tests/trybuild/main-03-fn-params.rs");
|
2021-06-08 18:33:05 +02:00
|
|
|
t.pass("tests/trybuild/main-04-system-path.rs");
|
|
|
|
t.compile_fail("tests/trybuild/main-05-system-expect-path.rs");
|
|
|
|
t.compile_fail("tests/trybuild/main-06-unknown-attr.rs");
|
2020-04-26 21:11:16 +02:00
|
|
|
|
|
|
|
t.pass("tests/trybuild/test-01-basic.rs");
|
|
|
|
t.pass("tests/trybuild/test-02-keep-attrs.rs");
|
2021-02-02 03:07:58 +01:00
|
|
|
t.compile_fail("tests/trybuild/test-03-only-async.rs");
|
2021-10-14 11:54:39 +02:00
|
|
|
t.pass("tests/trybuild/test-04-system-path.rs");
|
|
|
|
t.compile_fail("tests/trybuild/test-05-system-expect-path.rs");
|
|
|
|
t.compile_fail("tests/trybuild/test-06-unknown-attr.rs");
|
2020-04-26 21:11:16 +02:00
|
|
|
}
|