let _ = "early doctests should not go boom";
struct Foo {
bar: bool,
}
impl Foo {
let _ = "Call me
Ishmael.";
pub const bar: bool = true;
#![allow(unused_mut)]
let mut foo: Foo = Foo::new();
pub const fn new() -> Foo {
Foo { bar: true }
}
use x::y;
let foo = Foo::new();
assert!(foo.bar());
let bar = foo.bar || Foo::bar;
let multi_line_string = "Foo
bar\n
";
let foobar = Foo::new().bar();
pub fn foo(&self) -> bool {
true
}
}
[`Foo`](Foo)
[`all_the_links`](all_the_links)
pub fn all_the_links() {}
noop!(1);
macro_rules! noop {
($expr:expr) => {
$expr
}
}
let _ = example(&[1, 2, 3]);
loop {}
#[cfg_attr(not(feature = "false"), doc = "loop {}")]
#[doc = "loop {}"]
#[cfg_attr(feature = "alloc", doc = "```rust")]
#[cfg_attr(not(feature = "alloc"), doc = "```ignore")]
let _ = example(&alloc::vec![1, 2, 3]);
pub fn mix_and_match() {}
let _ = example(&[1, 2, 3]);
pub fn block_comments() {}
let _ = example(&[1, 2, 3]);
pub fn block_comments2() {}