diff --git a/diesel/src/pg/expression/functions.rs b/diesel/src/pg/expression/functions.rs index a6c64afd9d30..353b0faa7884 100644 --- a/diesel/src/pg/expression/functions.rs +++ b/diesel/src/pg/expression/functions.rs @@ -343,11 +343,11 @@ define_sql_function! { /// # use std::collections::Bound; /// # use diesel::sql_types::{Nullable, Integer, Array}; /// # let connection = &mut establish_connection(); - /// let int = diesel::select(range_merge::, Range<_>, _, _>(5..11, 10..)).get_result::, Bound)>>(connection)?; - /// assert_eq!(Some((Bound::Included(5), Bound::Unbounded)), int); + /// let int = diesel::select(range_merge::, Range<_>, _, _>(5..11, 10..)).get_result::<(Bound, Bound)>(connection)?; + /// assert_eq!((Bound::Included(5), Bound::Unbounded), int); /// - /// let int = diesel::select(range_merge::, Range<_>, _, _>(1..3, 7..10)).get_result::, Bound)>>(connection)?; - /// assert_eq!(Some((Bound::Included(1), Bound::Excluded(10))), int); + /// let int = diesel::select(range_merge::, Range<_>, _, _>(1..3, 7..10)).get_result::<(Bound, Bound)>(connection)?; + /// assert_eq!((Bound::Included(1), Bound::Excluded(10)), int); /// /// let int = diesel::select(range_merge::>, Nullable>, _, _>(None::>, 7..10)).get_result::, Bound)>>(connection)?; /// assert_eq!(None, int); @@ -358,7 +358,7 @@ define_sql_function! { /// # } /// ``` #[cfg(feature = "postgres_backend")] - fn range_merge + SingleValue>(lhs: R1, rhs: R2) -> Nullable>; + fn range_merge + SingleValue + CombinedNullableValue>>(lhs: R1, rhs: R2) -> R2::Out; } define_sql_function! {