]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/early-unindent.rs
Migrate `rustc_parse` to derive diagnostics
[rust.git] / tests / rustdoc / early-unindent.rs
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 }