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