From 7beeb5c480caba230ea600545a849cdd90409596 Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Wed, 19 Jan 2022 15:25:28 -0800 Subject: [PATCH] cfg doctest to compile on all versions of rustc --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index d6cd406..4383c4b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -201,6 +201,7 @@ //! # //! # fn demo() -> Result<()> { //! # let missing = "..."; +//! # #[cfg(not(eyre_no_fmt_args_capture))] //! return Err(eyre!("Missing attribute: {missing}")); //! # Ok(()) //! # }