cli: add bounded std copy/search and checked arithmetic
This commit is contained in:
36 files changed
+1533
-7
No files matched your search
@@ -0,0 +1,9 @@
|
||||
// expect: reject E7005
|
||||
// phase: 6
|
||||
// spec: docs/spec/16-standard-library.md §2.4
|
||||
module test.bounded
|
||||
import std.bytes;
|
||||
|
||||
fn main() -> u8
|
||||
effects []
|
||||
{ var buf: [u8; 4] = zero; let result = std.bytes.copy(ref buf, b"x"); return 0; }
|
||||
Reference in new issue
Block a user