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