Files
aji/tests/conformance/source/reject_twins/analogue_fallible_stmt.aji
T

11 lines
251 B
Rust

// expect: reject E7006
// phase: 6
// spec: docs/spec/15-source-language.md §8
module test.fallible_without_targets
fn f(c: cap<fs.read>) -> void effects [fs.read] {
fs.open_read(c, b"/a"); // diagnostic here
}
fn main() -> void effects [] {}