2020-11-18 07:38:17 -06:00
|
|
|
#![crate_name = "quix"]
|
|
|
|
pub trait Foo {
|
2024-10-23 18:15:23 -05: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();
|
|
|
|
|
2024-10-23 18:15:23 -05: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 {
|
2024-10-23 18:15:23 -05: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() {}
|
2024-10-23 18:15:23 -05: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 {
|
2024-10-23 18:15:23 -05: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() {}
|
|
|
|
|
2024-10-23 18:15:23 -05: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() {}
|
|
|
|
}
|