]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/check-doc-alias-attr-location.rs
Auto merge of #107618 - chriswailes:linker-arg, r=albertlarsan68
[rust.git] / tests / rustdoc-ui / check-doc-alias-attr-location.rs
1 pub struct Bar;
2 pub trait Foo {
3     type X;
4     fn foo() -> Self::X;
5 }
6
7 #[doc(alias = "foo")] //~ ERROR
8 extern "C" {}
9
10 #[doc(alias = "bar")] //~ ERROR
11 impl Bar {
12     #[doc(alias = "const")]
13     pub const A: u32 = 0;
14 }
15
16 #[doc(alias = "foobar")] //~ ERROR
17 impl Foo for Bar {
18     #[doc(alias = "assoc")] //~ ERROR
19     type X = i32;
20     fn foo() -> Self::X {
21         0
22     }
23 }