tests: audit feature-header context and rejection boundaries
This commit is contained in:
1 parent
fe63ae9586
commit
03305f0957
13 files changed
+326
-10
No files matched your search
@@ -0,0 +1,10 @@
|
||||
// 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 [] {}
|
||||
Reference in new issue
Block a user