#![feature(doc_notable_trait)] // Notable traits SHOULD NOT be shown when the `impl` has a concrete type and // the return type has a generic type. pub mod generic_return { pub struct Wrapper(T); #[doc(notable_trait)] pub trait NotableTrait {} impl NotableTrait for Wrapper {} //@ has notable_trait_generics/generic_return/fn.returning.html //@ !has - '//a[@class="tooltip"]/@data-notable-ty' 'Wrapper' pub fn returning() -> Wrapper { loop {} } } // Notable traits SHOULD be shown when the `impl` has a generic type and the // return type has a concrete type. pub mod generic_impl { pub struct Wrapper(T); #[doc(notable_trait)] pub trait NotableTrait {} impl NotableTrait for Wrapper {} //@ has notable_trait_generics/generic_impl/fn.returning.html //@ has - '//a[@class="tooltip"]/@data-notable-ty' 'Wrapper' pub fn returning() -> Wrapper { loop {} } }