Update tests/rustdoc
to new test syntax
This commit is contained in:
parent
d3ec92e16e
commit
1b67035579
627 changed files with 4376 additions and 4376 deletions
|
@ -1,27 +1,27 @@
|
|||
#![crate_name = "foo"]
|
||||
|
||||
// @has 'foo/trait.Unsafe.html'
|
||||
// @has - '//*[@class="object-safety-info"]' 'This trait is not object safe.'
|
||||
// @has - '//*[@id="object-safety"]' 'Object Safety'
|
||||
//@ has 'foo/trait.Unsafe.html'
|
||||
//@ has - '//*[@class="object-safety-info"]' 'This trait is not object safe.'
|
||||
//@ has - '//*[@id="object-safety"]' 'Object Safety'
|
||||
pub trait Unsafe {
|
||||
fn foo() -> Self;
|
||||
}
|
||||
|
||||
// @has 'foo/trait.Unsafe2.html'
|
||||
// @has - '//*[@class="object-safety-info"]' 'This trait is not object safe.'
|
||||
// @has - '//*[@id="object-safety"]' 'Object Safety'
|
||||
//@ has 'foo/trait.Unsafe2.html'
|
||||
//@ has - '//*[@class="object-safety-info"]' 'This trait is not object safe.'
|
||||
//@ has - '//*[@id="object-safety"]' 'Object Safety'
|
||||
pub trait Unsafe2<T> {
|
||||
fn foo(i: T);
|
||||
}
|
||||
|
||||
// @has 'foo/trait.Safe.html'
|
||||
// @!has - '//*[@class="object-safety-info"]' ''
|
||||
// @!has - '//*[@id="object-safety"]' ''
|
||||
//@ has 'foo/trait.Safe.html'
|
||||
//@ !has - '//*[@class="object-safety-info"]' ''
|
||||
//@ !has - '//*[@id="object-safety"]' ''
|
||||
pub trait Safe {
|
||||
fn foo(&self);
|
||||
}
|
||||
|
||||
// @has 'foo/struct.Foo.html'
|
||||
// @count - '//*[@class="object-safety-info"]' 0
|
||||
// @count - '//*[@id="object-safety"]' 0
|
||||
//@ has 'foo/struct.Foo.html'
|
||||
//@ count - '//*[@class="object-safety-info"]' 0
|
||||
//@ count - '//*[@id="object-safety"]' 0
|
||||
pub struct Foo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue