Complete the code to define a unit-like struct named Marker.
struct [1];The correct syntax to define a unit-like struct is struct Marker; where Marker is the struct name.
Complete the code to create an instance of the unit-like struct Marker.
let m = [1];Unit-like structs are instantiated by just writing their name without parentheses or braces, like Marker.
Fix the error in the code by completing the blank to correctly implement the Debug trait for the unit-like struct Marker.
#[derive([1])] struct Marker;
Display instead of Debug in derive.The Debug trait allows printing the struct with {:?}. It is derived using #[derive(Debug)].
Fill both blanks to implement a function that takes a unit-like struct Marker as a parameter and returns a string.
fn describe([1]: [2]) -> &'static str { "This is a unit-like struct" }
The function parameter name can be any valid variable name like m, and the type is the unit-like struct Marker.
Fill all three blanks to create a unit-like struct Flag, instantiate it, and print it using debug formatting.
#[derive([1])] struct [2]; fn main() { let f = [3]; println!("{:?}", f); }
Flag().Derive Debug to print the struct, define the struct Flag, and instantiate it by just writing Flag.
