2014-12-31 04:32:49 +00:00
|
|
|
/// The '# ' lines should be removed from the output, but the #[derive] should be
|
2013-12-28 23:54:56 +00:00
|
|
|
/// retained.
|
|
|
|
///
|
|
|
|
/// ```rust
|
2014-12-31 04:32:49 +00:00
|
|
|
/// # #[derive(PartialEq)] // invisible
|
2013-12-28 23:54:56 +00:00
|
|
|
/// # struct Foo; // invisible
|
|
|
|
///
|
2014-12-31 04:32:49 +00:00
|
|
|
/// #[derive(PartialEq)] // Bar
|
2013-12-28 23:54:56 +00:00
|
|
|
/// struct Bar(Foo);
|
|
|
|
///
|
|
|
|
/// fn test() {
|
|
|
|
/// let x = Bar(Foo);
|
2015-06-07 18:00:38 +00:00
|
|
|
/// assert_eq!(x, x); // check that the derivings worked
|
2013-12-28 23:54:56 +00:00
|
|
|
/// }
|
|
|
|
/// ```
|
|
|
|
pub fn foo() {}
|
2015-01-17 17:24:04 +00:00
|
|
|
|
2022-08-12 04:44:07 +00:00
|
|
|
// @!hasraw hidden_line/fn.foo.html invisible
|
2015-02-06 07:54:11 +00:00
|
|
|
// @matches - //pre "#\[derive\(PartialEq\)\] // Bar"
|