Skip to content

Commit ca5c752

Browse files
GuillaumeGomezpetrochenkov
authored andcommitted
Add regression test for #96079
1 parent 5cce8cb commit ca5c752

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/test/rustdoc/early-unindent.rs

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// This is a regression for https://github.com/rust-lang/rust/issues/96079.
2+
3+
#![crate_name = "foo"]
4+
5+
pub mod app {
6+
pub struct S;
7+
8+
impl S {
9+
// @has 'foo/app/struct.S.html'
10+
// @has - '//a[@href="../enums/enum.Foo.html#method.by_name"]' 'Foo::by_name'
11+
/**
12+
Doc comment hello! [`Foo::by_name`](`crate::enums::Foo::by_name`).
13+
*/
14+
pub fn whatever(&self) {}
15+
}
16+
}
17+
18+
pub mod enums {
19+
pub enum Foo {
20+
Bar,
21+
}
22+
23+
impl Foo {
24+
pub fn by_name(&self) {}
25+
}
26+
}

0 commit comments

Comments
 (0)