]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/failed-doctest-extra-semicolon-on-item.rs
Auto merge of #107644 - Zoxc:query-cache-tweak, r=cjgillot
[rust.git] / tests / rustdoc-ui / failed-doctest-extra-semicolon-on-item.rs
1 // FIXME: if/when the output of the test harness can be tested on its own, this test should be
2 // adapted to use that, and that normalize line can go away
3
4 // compile-flags:--test
5 // normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR"
6 // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
7 // failure-status: 101
8
9 /// <https://github.com/rust-lang/rust/issues/91014>
10 ///
11 /// ```rust
12 /// struct S {}; // unexpected semicolon after struct def
13 ///
14 /// fn main() {
15 ///    assert_eq!(0, 1);
16 /// }
17 /// ```
18 mod m {}