macro_rules! incomplete {
($ty:ty) => { ... };
() => { ... };
}
Expand description
Indicate that a segment of code must be filled out before compilation is allowed to succeed.
§Examples
ⓘ
#[macro_use] extern crate incomplete;
fn main() {
let x = incomplete!(bool);
if x == true {
println!("profit");
}
}
would produce
error: value assigned to `incomplete` is never read
--> src/main.rs:5:13
|
5 | let x = incomplete!(bool);
| ^^^^^^^^^^^^^^^^^
|
You can leave the type argument out if the compiler can already infer the type.