#[test]
fn opacity_invariants_are_enforced_by_the_type_system() {
if std::env::var_os("RUN_TRYBUILD").is_none() {
eprintln!(
"skipping trybuild snapshot test; set RUN_TRYBUILD=1 to run (the pinned \
compile-fail CI job does). Regenerate with `TRYBUILD=overwrite RUN_TRYBUILD=1 \
cargo test -p lean-rs-sys --test compile_fail_surface`"
);
return;
}
let t = trybuild::TestCases::new();
t.compile_fail("tests/compile_fail/lean_object_not_constructible.rs");
t.compile_fail("tests/compile_fail/lean_object_repr_not_nameable.rs");
}