add compile test for unsound case

This commit is contained in:
Evan Almloff committed 2023-08-09 10:49:47 -07:00
1 parent 91500f0349
commit f91eeccca7
4 files changed
+59

No files matched your search

+6
View File
@@ -73,3 +73,9 @@ impl EmptyBuilder {
pub fn fc_to_builder<'a, T: Properties + 'a>(_: fn(Scope<'a, T>) -> Element<'a>) -> T::Builder {
T::builder()
}
#[test]
fn unsafe_props_fail() {
let t = trybuild::TestCases::new();
t.compile_fail("compile_tests/props_safety.rs");
}