Files

6 lines
234 B
Rust

// expect: reject E7005
// phase: 6
// spec: docs/spec/05-effects-and-capabilities.md §14
module test.errors
fn main() -> io_error effects [] { return alloc_error::budget_exceeded; } // diagnostic here: alloc_error::budget_exceeded;