mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
24 lines
373 B
Rust
24 lines
373 B
Rust
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")]
|
|
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
|
|
}
|
|
}
|