Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LPC4/Full-Stack
/ assert_compile_fails
Function
assert_compile_fails
tests/integration/hll_conformance.rs:58–65 ·
view source on GitHub ↗
Assert a program fails to compile (used for rejected diagnostics).
(src: &str)
Source
from the content-addressed store, hash-verified
56
r#"
57
struct Point {
58
x: i32
59
y: i32
60
}
61
62
main: () -> i32 {
63
pt: Point* = new(Point)
64
pt.x = 12
65
pt.y = 30
66
return pt.x + pt.y
67
}
68
"#,
Callers
14
array_literal_wrong_element_count_rejected
Function · 0.85
contextual_array_element_unknown_field_rejected
Function · 0.85
generic_function_requires_explicit_unconstrained_type
Function · 0.85
generic_function_rejects_conflicting_inference
Function · 0.85
match_non_exhaustive_is_rejected
Function · 0.85
enum_variant_wrong_arity_is_rejected
Function · 0.85
match_unknown_variant_is_rejected
Function · 0.85
match_unknown_const_pattern_is_rejected
Function · 0.85
match_scalar_without_catch_all_is_rejected
Function · 0.85
bare_constructor_without_context_is_rejected
Function · 0.85
try_rejects_non_carrier_operand
Function · 0.85
try_rejects_incompatible_error_type
Function · 0.85
Calls
1
set_write_artifacts
Method · 0.80
Tested by
14
array_literal_wrong_element_count_rejected
Function · 0.68
contextual_array_element_unknown_field_rejected
Function · 0.68
generic_function_requires_explicit_unconstrained_type
Function · 0.68
generic_function_rejects_conflicting_inference
Function · 0.68
match_non_exhaustive_is_rejected
Function · 0.68
enum_variant_wrong_arity_is_rejected
Function · 0.68
match_unknown_variant_is_rejected
Function · 0.68
match_unknown_const_pattern_is_rejected
Function · 0.68
match_scalar_without_catch_all_is_rejected
Function · 0.68
bare_constructor_without_context_is_rejected
Function · 0.68
try_rejects_non_carrier_operand
Function · 0.68
try_rejects_incompatible_error_type
Function · 0.68