Function test_docs::foo

source ·
pub fn foo()
Expand description

Basic function with some code examples:

println!("nothing fancy");
println!("but with two lines!");
Run

A failing to compile one:

println!("where did my argument {} go? :'(");
Run

An ignored one:

Let's say I'm just some text will ya?
Run

A failing to run one:

panic!("tadam");
Run

An inlined code!