2020-07-06 09:11:32 -05:00
|
|
|
pub struct Bar;
|
2020-07-23 14:04:54 -05:00
|
|
|
pub trait Foo {
|
|
|
|
type X;
|
|
|
|
fn foo() -> Self::X;
|
|
|
|
}
|
2020-07-06 09:11:32 -05:00
|
|
|
|
|
|
|
#[doc(alias = "foo")] //~ ERROR
|
2020-09-01 16:12:52 -05:00
|
|
|
extern "C" {}
|
2020-07-06 09:11:32 -05:00
|
|
|
|
|
|
|
#[doc(alias = "bar")] //~ ERROR
|
2020-07-23 14:04:54 -05:00
|
|
|
impl Bar {
|
2020-08-11 17:12:49 -05:00
|
|
|
#[doc(alias = "const")]
|
|
|
|
pub const A: u32 = 0;
|
2020-07-23 14:04:54 -05:00
|
|
|
}
|
2020-07-06 09:11:32 -05:00
|
|
|
|
|
|
|
#[doc(alias = "foobar")] //~ ERROR
|
2020-07-23 14:04:54 -05:00
|
|
|
impl Foo for Bar {
|
|
|
|
#[doc(alias = "assoc")] //~ ERROR
|
|
|
|
type X = i32;
|
2020-09-01 16:12:52 -05:00
|
|
|
fn foo() -> Self::X {
|
|
|
|
0
|
|
|
|
}
|
2020-07-23 14:04:54 -05:00
|
|
|
}
|