14 lines
292 B
Rust
14 lines
292 B
Rust
// atomic<T> holds bool or an integer of at most 64 bits.
|
|
// expect: reject E7005
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md
|
|
module demo.wide_cell
|
|
|
|
fn main() -> u64
|
|
effects [atomic]
|
|
{
|
|
let c = atomic.new(1u128); // diagnostic here: 1u128
|
|
let t = atomic.take(move c);
|
|
0
|
|
}
|