tests: audit task argument identities and source error boundaries
This commit is contained in:
1 parent
fd92604f36
commit
2742867ef7
18 files changed
+344
-20
No files matched your search
@@ -0,0 +1,7 @@
|
||||
// zero initialization requires a zeroable type; an enum rejects with registered zero_not_zeroable.
|
||||
// expect: reject E7006
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §4/§10
|
||||
module test.source_analogue_zero_enum
|
||||
enum E { A, B }
|
||||
fn main() -> u64 effects [] { var e: E = zero; return 0u64; } // diagnostic here: var e
|
||||
Reference in new issue
Block a user