blob: 2b272b7066793e2534db3098739eb7ced8441235 [file]
pub struct Bar;
pub trait Foo {
type X;
fn foo() -> Self::X;
}
// FIXME(#96009): Don't emit `unused_doc_comments` here, we already emit an error anyway.
//~v WARN
#[doc(alias = "foo")] //~ ERROR
extern "C" {}
#[doc(alias = "bar")] //~ ERROR
impl Bar {
#[doc(alias = "const")]
pub const A: u32 = 0;
}
#[doc(alias = "foobar")] //~ ERROR
impl Foo for Bar {
#[doc(alias = "assoc")] //~ ERROR
type X = i32;
fn foo() -> Self::X {
0
}
}