blob: 007d2ae6506d7864a5b276224753059c73d43b32 [file] [log] [blame]
#![crate_type="lib"]
pub struct Bar;
pub trait Foo {
type X;
fn foo() -> Self::X;
}
#[doc(alias = "foo")] //~ ERROR
extern "C" {}
#[doc(alias = "bar")] //~ ERROR
impl Bar {
#[doc(alias = "const")]
const A: u32 = 0;
}
#[doc(alias = "foobar")] //~ ERROR
impl Foo for Bar {
#[doc(alias = "assoc")] //~ ERROR
type X = i32;
fn foo() -> Self::X {
0
}
}