13 lines
310 B
Rust
13 lines
310 B
Rust
// expect: reject E4202
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md §12; docs/spec/04-concurrency-and-atomics.md §28
|
|
module test.atomic_access_parameter
|
|
|
|
fn read(cell: ref<atomic<u64>>) -> u64 effects [] {
|
|
return *cell; // diagnostic here: *cell
|
|
}
|
|
|
|
fn main() -> u64 effects [] {
|
|
return 0;
|
|
}
|