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