mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
17 lines
353 B
Rust
17 lines
353 B
Rust
// edition:2021
|
|
|
|
#![deny(rustdoc::invalid_rust_codeblocks)]
|
|
//~^ NOTE lint level is defined here
|
|
|
|
// By default, rustdoc should use the edition of the crate.
|
|
//! ```
|
|
//! foo'b'
|
|
//! ```
|
|
//~^^^ ERROR could not parse
|
|
//~| NOTE prefix `foo` is unknown
|
|
|
|
// Rustdoc should respect `edition2018` when highlighting syntax.
|
|
//! ```edition2018
|
|
//! foo'b'
|
|
//! ```
|