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