]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc-ui/check-doc-alias-attr-location.rs
New upstream version 1.51.0+dfsg1
[rustc.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 }