12 lines
305 B
Rust
12 lines
305 B
Rust
// expect: reject E0006
|
|
// phase: 6
|
|
// spec: docs/spec/04-concurrency-and-atomics.md §33.1; docs/spec/15-source-language.md §10
|
|
// AIR twin: phase3/reject/tasks_handle_as_parameter.air
|
|
module test.p
|
|
|
|
fn f(t: task<u8>) -> void effects [] { // diagnostic here
|
|
trap;
|
|
}
|
|
|
|
fn main() -> void effects [] {}
|