Skip to content

Commit

Permalink
Add regression test for #96079
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez authored and petrochenkov committed Apr 19, 2022
1 parent 5cce8cb commit ca5c752
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/test/rustdoc/early-unindent.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// This is a regression for https://github.com/rust-lang/rust/issues/96079.

#![crate_name = "foo"]

pub mod app {
pub struct S;

impl S {
// @has 'foo/app/struct.S.html'
// @has - '//a[@href="../enums/enum.Foo.html#method.by_name"]' 'Foo::by_name'
/**
Doc comment hello! [`Foo::by_name`](`crate::enums::Foo::by_name`).
*/
pub fn whatever(&self) {}
}
}

pub mod enums {
pub enum Foo {
Bar,
}

impl Foo {
pub fn by_name(&self) {}
}
}

0 comments on commit ca5c752

Please sign in to comment.