tests: audit feature-header context and rejection boundaries
This commit is contained in:
1 parent
fe63ae9586
commit
03305f0957
13 files changed
+326
-10
No files matched your search
@@ -0,0 +1,10 @@
|
||||
// expect: reject E7005
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §13
|
||||
module test.endian
|
||||
import std.bytes;
|
||||
|
||||
fn main() -> u8 effects [] {
|
||||
let r = std.bytes.ReadU16::ok(1u32); // diagnostic here: 1u32)
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user