Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
23
tests/rustdoc-ui/check-doc-alias-attr-location.rs
Normal file
23
tests/rustdoc-ui/check-doc-alias-attr-location.rs
Normal file
|
@ -0,0 +1,23 @@
|
|||
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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue