25 lines
408 B
Rust
25 lines
408 B
Rust
|
#![crate_type="lib"]
|
||
|
#![feature(doc_alias)]
|
||
|
|
||
|
pub struct Bar;
|
||
|
pub trait Foo {
|
||
|
type X;
|
||
|
fn foo() -> Self::X;
|
||
|
}
|
||
|
|
||
|
#[doc(alias = "foo")] //~ ERROR
|
||
|
extern {}
|
||
|
|
||
|
#[doc(alias = "bar")] //~ ERROR
|
||
|
impl Bar {
|
||
|
#[doc(alias = "const")] //~ ERROR
|
||
|
const A: u32 = 0;
|
||
|
}
|
||
|
|
||
|
#[doc(alias = "foobar")] //~ ERROR
|
||
|
impl Foo for Bar {
|
||
|
#[doc(alias = "assoc")] //~ ERROR
|
||
|
type X = i32;
|
||
|
fn foo() -> Self::X { 0 }
|
||
|
}
|