2020-11-18 13:38:17 +00:00
|
|
|
#![crate_name = "quix"]
|
|
|
|
pub trait Foo {
|
2021-12-04 01:09:04 +00:00
|
|
|
// @has quix/trait.Foo.html '//a[@href="../src/quix/trait-src-link.rs.html#4"]' 'source'
|
2020-11-18 13:38:17 +00:00
|
|
|
fn required();
|
|
|
|
|
2021-12-04 01:09:04 +00:00
|
|
|
// @has quix/trait.Foo.html '//a[@href="../src/quix/trait-src-link.rs.html#7"]' 'source'
|
2020-11-18 13:38:17 +00:00
|
|
|
fn provided() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Bar;
|
|
|
|
|
|
|
|
impl Foo for Bar {
|
2021-12-04 01:09:04 +00:00
|
|
|
// @has quix/struct.Bar.html '//a[@href="../src/quix/trait-src-link.rs.html#14"]' 'source'
|
2020-11-18 13:38:17 +00:00
|
|
|
fn required() {}
|
2021-12-04 01:09:04 +00:00
|
|
|
// @has quix/struct.Bar.html '//a[@href="../src/quix/trait-src-link.rs.html#7"]' 'source'
|
2020-11-18 13:38:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Baz;
|
|
|
|
|
|
|
|
impl Foo for Baz {
|
2021-12-04 01:09:04 +00:00
|
|
|
// @has quix/struct.Baz.html '//a[@href="../src/quix/trait-src-link.rs.html#22"]' 'source'
|
2020-11-18 13:38:17 +00:00
|
|
|
fn required() {}
|
|
|
|
|
2021-12-04 01:09:04 +00:00
|
|
|
// @has quix/struct.Baz.html '//a[@href="../src/quix/trait-src-link.rs.html#25"]' 'source'
|
2020-11-18 13:38:17 +00:00
|
|
|
fn provided() {}
|
|
|
|
}
|