(src: &str)
| 21 | let mut p = CompilationPipeline::new(); |
| 22 | p.set_write_artifacts(false); |
| 23 | p.compile(src) |
| 24 | .unwrap_or_else(|e| panic!("expected compile to succeed, got: {e}")); |
| 25 | } |
| 26 | |
| 27 | // --- Undefined local variables --- |
| 28 | |
| 29 | #[test] |
| 30 | fn undefined_local_on_rhs_is_rejected() { |
| 31 | reject( |