leo/tests/compiler/structs/inline_member_fail.leo
2022-10-05 16:53:49 -07:00

16 lines
200 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
program test.aleo {
struct Foo {
x: u8;
}
function main() {
const y: u8 = 1;
const a: Foo = Foo { y };
}
}