]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/doctest-edition.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / 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 //! ```