Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
25
tests/rustdoc/inline_cross/implementors-js.rs
Normal file
25
tests/rustdoc/inline_cross/implementors-js.rs
Normal file
|
@ -0,0 +1,25 @@
|
|||
// aux-build:implementors_inline.rs
|
||||
// build-aux-docs
|
||||
// ignore-cross-compile
|
||||
|
||||
extern crate implementors_inline;
|
||||
|
||||
// @!has implementors/implementors_js/trait.MyTrait.js
|
||||
// @has implementors/implementors_inline/my_trait/trait.MyTrait.js
|
||||
// @!has implementors/implementors_inline/prelude/trait.MyTrait.js
|
||||
// @has implementors_inline/my_trait/trait.MyTrait.html
|
||||
// @has - '//script/@src' '../../implementors/implementors_inline/my_trait/trait.MyTrait.js'
|
||||
// @has implementors_js/trait.MyTrait.html
|
||||
// @has - '//script/@src' '../implementors/implementors_inline/my_trait/trait.MyTrait.js'
|
||||
/// When re-exporting this trait, the HTML will be inlined,
|
||||
/// but, vitally, the JavaScript will be located only at the
|
||||
/// one canonical path.
|
||||
pub use implementors_inline::prelude::MyTrait;
|
||||
|
||||
pub struct OtherStruct;
|
||||
|
||||
impl MyTrait for OtherStruct {
|
||||
fn my_fn(&self) -> OtherStruct {
|
||||
OtherStruct
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue