Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
run-make
/
doctests-merge
/
doctest.rs
blob: 66a5d88db67f44050071de897647da432f2f3f8b [
file
] [
log
] [
blame
]
#![
crate_name
=
"foo"
]
#![
crate_type
=
"lib"
]
//! ```
//! foo::init();
//! ```
/// ```
/// foo::init();
/// ```
pub
fn
init
()
{
static
mut
IS_INIT
:
bool
=
false
;
unsafe
{
assert
!(!
IS_INIT
);
IS_INIT
=
true
;
}
}