]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/doctest-edition.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / rustdoc-ui / doctest-edition.rs
1 // edition:2021
2
3 #![deny(rustdoc::invalid_rust_codeblocks)]
4 //~^ NOTE lint level is defined here
5
6 // By default, rustdoc should use the edition of the crate.
7 //! ```
8 //! foo'b'
9 //! ```
10 //~^^^ ERROR could not parse
11 //~| NOTE prefix `foo` is unknown
12
13 // Rustdoc should respect `edition2018` when highlighting syntax.
14 //! ```edition2018
15 //! foo'b'
16 //! ```