1 //! Test case for [#80737].
3 //! A SomeTrait that is implemented for `&mut T where T: SomeTrait`
4 //! should not be marked as "notable" for return values that do not
5 //! have bounds on the trait itself.
7 //! [#80737]: https://github.com/rust-lang/rust/issues/80737
9 #![feature(rustdoc_internals)]
12 #[doc(primitive = "reference")]
13 /// Some useless docs, wouhou!
15 /// We need to put this in here, because notable traits
16 /// that are implemented on foreign types don't show up.
19 // @has doc_notable_trait_mut_t_is_not_an_iterator/fn.fn_no_matches.html
20 // @!has - '//code[@class="content"]' 'Iterator'
21 pub fn fn_no_matches<'a, T: 'a>() -> &'a mut T {