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 E7004
|
||||
// phase: 6
|
||||
// spec: docs/spec/16-standard-library.md §2.4
|
||||
module test.bounded
|
||||
import std.bytes;
|
||||
|
||||
fn main() -> usize
|
||||
effects []
|
||||
{ match std.bytes.find_slice(b"abc", b"b") { std.bytes.FindResult::found(index) => { return index; } } }
|
||||
Reference in new issue
Block a user