2020-08-01 10:37:30 -05:00
|
|
|
#![crate_type="lib"]
|
|
|
|
|
|
|
|
pub struct Bar;
|
|
|
|
pub trait Foo {
|
|
|
|
type X;
|
|
|
|
fn foo() -> Self::X;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(alias = "foo")] //~ ERROR
|
|
|
|
extern {}
|
|
|
|
|
|
|
|
#[doc(alias = "bar")] //~ ERROR
|
|
|
|
impl Bar {
|
2020-08-11 17:12:49 -05:00
|
|
|
#[doc(alias = "const")]
|
2020-08-01 10:37:30 -05:00
|
|
|
const A: u32 = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(alias = "foobar")] //~ ERROR
|
|
|
|
impl Foo for Bar {
|
|
|
|
#[doc(alias = "assoc")] //~ ERROR
|
|
|
|
type X = i32;
|
|
|
|
fn foo() -> Self::X { 0 }
|
|
|
|
}
|