diff --git a/structsubgroup/Cargo.lock b/structsubgroup/Cargo.lock new file mode 100644 index 0000000..ee20285 --- /dev/null +++ b/structsubgroup/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "structsubgroup" +version = "0.1.0" diff --git a/structsubgroup/Cargo.toml b/structsubgroup/Cargo.toml new file mode 100644 index 0000000..941b356 --- /dev/null +++ b/structsubgroup/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "structsubgroup" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/structsubgroup/README.md b/structsubgroup/README.md new file mode 100644 index 0000000..15a1dac --- /dev/null +++ b/structsubgroup/README.md @@ -0,0 +1,5 @@ +# structsubgroup + +Testing if it is possible to have a sub group (block) inside a struct. + +The idea is that the subgroup is only available under a certain feature. diff --git a/structsubgroup/src/main.rs b/structsubgroup/src/main.rs new file mode 100644 index 0000000..59eca24 --- /dev/null +++ b/structsubgroup/src/main.rs @@ -0,0 +1,10 @@ +struct Example { + data: String, + { + another: String, + blob: u64, + } +} +fn main() { + println!("Hello, world!"); +}