2020-05-01 21:24:01 -05:00
|
|
|
|
// TODO: [Object] Type Validation: §4 (interfaces) for objects
|
|
|
|
|
// TODO: [Non-Null] §1 A Non‐Null type must not wrap another Non‐Null type.
|
|
|
|
|
|
2022-07-20 05:37:58 -05:00
|
|
|
|
#[rustversion::nightly]
|
2020-05-01 21:24:01 -05:00
|
|
|
|
#[test]
|
2022-07-20 05:37:58 -05:00
|
|
|
|
fn test_failing_compilation() {
|
2020-05-01 21:24:01 -05:00
|
|
|
|
let t = trybuild::TestCases::new();
|
2022-07-20 05:37:58 -05:00
|
|
|
|
t.compile_fail("fail/**/*.rs");
|
2020-05-01 21:24:01 -05:00
|
|
|
|
}
|
2023-10-06 13:59:00 -05:00
|
|
|
|
|
|
|
|
|
#[rustversion::nightly]
|
|
|
|
|
#[test]
|
|
|
|
|
fn test_passing_compilation() {
|
|
|
|
|
let t = trybuild::TestCases::new();
|
|
|
|
|
t.pass("pass/**/*.rs");
|
|
|
|
|
}
|