summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/doctest/doctest-edition.rs
blob: b0787be972f2f558b99b56c05fdebbdaeff5aa3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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'
//! ```