7 lines
277 B
Rust
7 lines
277 B
Rust
// expect: reject E2101 E2101
|
|
// phase: 6
|
|
// spec: docs/spec/16-standard-library.md §2.8
|
|
module test.fmt
|
|
import std.fmt;
|
|
fn main() -> u8 effects [] { var buf: [u8; 4] = zero; ref held = buf; let result = std.fmt.write_i64(mut buf[0..0], -1); assert(held[0] == 0); return 0; }
|