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