]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/check-doc-alias-attr-location.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / 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 }