]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/default-trait-method-link.rs
Fix problem noticed in PR106859 with char -> u8 suggestion
[rust.git] / tests / rustdoc / default-trait-method-link.rs
1 #![crate_name = "foo"]
2
3 // @has foo/trait.Foo.html '//a[@href="trait.Foo.html#tymethod.req"]' 'req'
4 // @has foo/trait.Foo.html '//a[@href="trait.Foo.html#method.prov"]' 'prov'
5
6 /// Always make sure to implement [`req`], but you don't have to implement [`prov`].
7 ///
8 /// [`req`]: Foo::req
9 /// [`prov`]: Foo::prov
10 pub trait Foo {
11     /// Required
12     fn req();
13     /// Provided
14     fn prov() {}
15 }