Rocket/core/lib/tests/guide.rs
Sergio Benitez 95c981de79 Test all guide code examples.
Every code example is now fully runnable and testable. As a result, all
examples are now tested and include imports. Relevant imports are shown
by default. Code examples can be expanded to show all imports.

Fixes #432.
2020-02-15 04:02:19 -08:00

15 lines
269 B
Rust

#![feature(proc_macro_hygiene)]
#![feature(external_doc)]
#[allow(dead_code)]
mod test_guide {
#[doc(include = "../../../site/guide/2-getting-started.md")]
pub struct GuideGettingStart;
/// ```rust
/// assert_eq!(0, 1);
/// ```
struct Foo;
}