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
";
let foobar = Foo::new().bar();
pub fn foo(&self) -> bool {
true
}
}
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() {}