Make tests capture the error printed by a Result return

This commit is contained in:
David Tolnay
2022-10-07 13:45:41 -07:00
parent 43c22af267
commit 293f662ca9
3 changed files with 24 additions and 9 deletions

View File

@@ -262,6 +262,7 @@ use crate::sys_common::memchr;
#[stable(feature = "bufwriter_into_parts", since = "1.56.0")]
pub use self::buffered::WriterPanicked;
pub(crate) use self::stdio::attempt_print_to_stderr;
#[unstable(feature = "internal_output_capture", issue = "none")]
#[doc(no_inline, hidden)]
pub use self::stdio::set_output_capture;