]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/doctest-edition.rs
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
[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 //! ```