update syn to v2.0, large update
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
use satrs_core::res_code::ResultU16;
|
||||
use satrs_mib::resultcode;
|
||||
|
||||
#[resultcode(info = "This is a test result where the first parameter is foo")]
|
||||
#[resultcode]
|
||||
const _TEST_RESULT: ResultU16 = ResultU16::const_new(0, 1);
|
||||
|
||||
fn main() {}
|
||||
|
8
satrs-mib/codegen/tests/basic_with_info.rs
Normal file
8
satrs-mib/codegen/tests/basic_with_info.rs
Normal file
@ -0,0 +1,8 @@
|
||||
//! Basic check which just verifies that everything compiles
|
||||
use satrs_core::res_code::ResultU16;
|
||||
use satrs_mib::resultcode;
|
||||
|
||||
#[resultcode(info = "This is a test result where the first parameter is foo")]
|
||||
const _TEST_RESULT: ResultU16 = ResultU16::const_new(0, 1);
|
||||
|
||||
fn main() {}
|
@ -2,6 +2,7 @@
|
||||
fn tests() {
|
||||
let t = trybuild::TestCases::new();
|
||||
t.pass("tests/basic.rs");
|
||||
t.pass("tests/basic_with_info.rs");
|
||||
t.pass("tests/verify_gen_struct.rs");
|
||||
//t.pass("tests/group_in_enum.rs");
|
||||
}
|
||||
|
Reference in New Issue
Block a user