11 lines
251 B
Rust
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 [] {}
|