From ee70746f8cab9b1bd6b15df8657aa426386e092a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 3 Jan 2024 02:56:28 +0100 Subject: [PATCH] Test what happens when mixing implicit and explicit types --- micronfig_macros/tests/sources/string_multi_mixed.rs | 9 +++++++++ micronfig_macros/tests/tests.rs | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 micronfig_macros/tests/sources/string_multi_mixed.rs diff --git a/micronfig_macros/tests/sources/string_multi_mixed.rs b/micronfig_macros/tests/sources/string_multi_mixed.rs new file mode 100644 index 0000000..34a99c4 --- /dev/null +++ b/micronfig_macros/tests/sources/string_multi_mixed.rs @@ -0,0 +1,9 @@ +micronfig::config! { + GARAS, + AUTO: String, + BUS, +} + +fn main() { + println!("{:?} {:?} {:?}", GARAS(), AUTO(), BUS()) +} diff --git a/micronfig_macros/tests/tests.rs b/micronfig_macros/tests/tests.rs index 7a53f9c..155fa36 100644 --- a/micronfig_macros/tests/tests.rs +++ b/micronfig_macros/tests/tests.rs @@ -20,4 +20,5 @@ pass!(empty); pass!(string_single_explicit); pass!(string_single_implicit); pass!(string_multi_explicit); -pass!(string_multi_implicit); \ No newline at end of file +pass!(string_multi_implicit); +pass!(string_multi_mixed);