mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-05 17:22:36 +00:00
95c981de79
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.
15 lines
269 B
Rust
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;
|
|
}
|
|
|