test_docs

Function foo

source
pub fn foo()
Expand description

Basic function with some code examples:

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

A failing to compile one:

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

An ignored one:

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

A failing to run one:

panic!("tadam");

An inlined code!