1 //! Test case for [#78160].
3 //! A SomeTrait that is implemented for `&mut T` should not be marked as
4 //! "notable" for return values that are `&T`.
6 //! [#78160]: https://github.com/rust-lang/rust/issues/78160
8 #![feature(rustdoc_internals)]
10 #[doc(primitive = "reference")]
11 /// Some useless docs, wouhou!
13 /// We need to put this in here, because notable traits
14 /// that are implemented on foreign types don't show up.
17 // @has doc_notable_trait_mut_t_is_not_ref_t/fn.fn_no_matches.html
18 // @!has - '//code[@class="content"]' "impl<'_, I> Iterator for &'_ mut I"
19 pub fn fn_no_matches<'a, T: Iterator + 'a>() -> &'a T {