]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/hidden-line.rs
Fix problem noticed in PR106859 with char -> u8 suggestion
[rust.git] / tests / rustdoc / hidden-line.rs
1 /// The '# ' lines should be removed from the output, but the #[derive] should be
2 /// retained.
3 ///
4 /// ```rust
5 /// # #[derive(PartialEq)] // invisible
6 /// # struct Foo; // invisible
7 ///
8 /// #[derive(PartialEq)] // Bar
9 /// struct Bar(Foo);
10 ///
11 /// fn test() {
12 ///     let x = Bar(Foo);
13 ///     assert_eq!(x, x); // check that the derivings worked
14 /// }
15 /// ```
16 pub fn foo() {}
17
18 // @!hasraw hidden_line/fn.foo.html invisible
19 // @matches - //pre "#\[derive\(PartialEq\)\] // Bar"