From e2e4f57bf84ca3cbdb91ba9d235c12b46666d090 Mon Sep 17 00:00:00 2001 From: Without Boats Date: Tue, 21 Aug 2018 00:58:52 +0200 Subject: Correctly parenthesize dyn Error + 'static. --- src/libstd/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/error.rs b/src/libstd/error.rs index 86d45e03f25..3de4a1bd417 100644 --- a/src/libstd/error.rs +++ b/src/libstd/error.rs @@ -168,7 +168,7 @@ pub trait Error: Debug + Display { /// "I'm the superhero of errors" /// } /// - /// fn source(&self) -> Option<&dyn (Error + 'static)> { + /// fn source(&self) -> Option<&(dyn Error + 'static)> { /// Some(&self.side) /// } /// } -- cgit 1.4.1-3-g733a5