2019-06-04 05:17:07 +00:00
|
|
|
#[test]
|
|
|
|
fn test_compile_errors() {
|
|
|
|
let t = trybuild::TestCases::new();
|
2020-03-06 05:01:27 +00:00
|
|
|
t.compile_fail("tests/ui/invalid_macro_args.rs");
|
2020-02-08 18:50:55 +00:00
|
|
|
t.compile_fail("tests/ui/invalid_property_args.rs");
|
2020-03-22 08:13:02 +00:00
|
|
|
t.compile_fail("tests/ui/invalid_pyclass_args.rs");
|
2020-01-13 22:56:16 +00:00
|
|
|
t.compile_fail("tests/ui/invalid_pymethod_names.rs");
|
|
|
|
t.compile_fail("tests/ui/missing_clone.rs");
|
2019-06-04 05:17:07 +00:00
|
|
|
t.compile_fail("tests/ui/reject_generics.rs");
|
2020-04-20 17:44:31 +00:00
|
|
|
t.compile_fail("tests/ui/wrong_aspyref_lifetimes.rs");
|
2020-04-12 07:31:35 +00:00
|
|
|
// Since the current minimum nightly(2020-01-20) has a different error message,
|
2020-04-13 01:38:06 +00:00
|
|
|
// we skip this test.
|
|
|
|
// TODO(kngwyu): Remove this `if` when we update minimum nightly.
|
2020-04-12 07:31:35 +00:00
|
|
|
if option_env!("TRAVIS_JOB_NAME") != Some("Minimum nightly") {
|
|
|
|
t.compile_fail("tests/ui/static_ref.rs");
|
|
|
|
}
|
2019-06-04 05:17:07 +00:00
|
|
|
}
|