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