MCPcopy 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#"
57struct Point {
58 x: i32
59 y: i32
60}
61
62main: () -> i32 {
63 pt: Point* = new(Point)
64 pt.x = 12
65 pt.y = 30
66 return pt.x + pt.y
67}
68"#,

Calls 1

set_write_artifactsMethod · 0.80