The command is `@!has`, not `!@has`. I don't think these checks were doing anything before! Ideally we would accept `!@has` as well, or at least fail tests that use `!@has`. The current behavior seems to be silently ignoring the check, which is very confusing.
21 lines
325 B
Rust
21 lines
325 B
Rust
use std::ops::Deref;
|
|
|
|
pub struct Foo;
|
|
|
|
impl Foo {
|
|
pub fn foo(&mut self) {}
|
|
}
|
|
|
|
// @has issue_74083/struct.Bar.html
|
|
// @!has - '//div[@class="sidebar-links"]/a[@href="#method.foo"]' 'foo'
|
|
pub struct Bar {
|
|
foo: Foo,
|
|
}
|
|
|
|
impl Deref for Bar {
|
|
type Target = Foo;
|
|
|
|
fn deref(&self) -> &Foo {
|
|
&self.foo
|
|
}
|
|
}
|