Add the derive proc macro
This commit is contained in:
54
simconnect-sdk-derive/tests/02-struct-attr-errors.stderr
Normal file
54
simconnect-sdk-derive/tests/02-struct-attr-errors.stderr
Normal file
@@ -0,0 +1,54 @@
|
||||
error: Unsupported field type. Only named fields are supported.
|
||||
--> tests/02-struct-attr-errors.rs:5:1
|
||||
|
|
||||
5 | / #[simconnect(period = "visual-frame", condition = "changed")]
|
||||
6 | | struct GpsData1(f64);
|
||||
| |_____________________^
|
||||
|
||||
error: expected attribute `#[simconnect(period = "...", condition = "...")]`
|
||||
--> tests/02-struct-attr-errors.rs:9:1
|
||||
|
|
||||
9 | struct GpsData2 {}
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: expected attribute `#[simconnect(period = "...", condition = "...")]`
|
||||
--> tests/02-struct-attr-errors.rs:12:3
|
||||
|
|
||||
12 | #[simconnect]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: expected attribute `#[simconnect(period = "...", condition = "...")]`
|
||||
--> tests/02-struct-attr-errors.rs:16:3
|
||||
|
|
||||
16 | #[simconnect()]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: expected attribute `#[simconnect(period = "...", condition = "...")]`
|
||||
--> tests/02-struct-attr-errors.rs:20:3
|
||||
|
|
||||
20 | #[simconnect(period = "second", period = "second")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: expected attribute `#[simconnect(period = "...", condition = "...")]`
|
||||
--> tests/02-struct-attr-errors.rs:24:3
|
||||
|
|
||||
24 | #[simconnect(condition = "none", condition = "none")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: expected attribute `#[simconnect(period = "...", condition = "...")]`
|
||||
--> tests/02-struct-attr-errors.rs:28:3
|
||||
|
|
||||
28 | #[simconnect(period = "second", condition = "none", test = "test")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: expected attribute `#[simconnect(period = "...", condition = "...")]`
|
||||
--> tests/02-struct-attr-errors.rs:32:3
|
||||
|
|
||||
32 | #[simconnect(periodX = "second", condition = "none")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: expected attribute `#[simconnect(period = "...", condition = "...")]`
|
||||
--> tests/02-struct-attr-errors.rs:36:3
|
||||
|
|
||||
36 | #[simconnect(period = "second", conditionX = "none")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
Reference in New Issue
Block a user