From d6cdefc4e0000bcb3c07bddd26eaa144bcf5a00b Mon Sep 17 00:00:00 2001 From: Anthony Defranceschi Date: Thu, 17 Aug 2017 01:39:23 +0200 Subject: [PATCH] added whitespace --- src/librustc/diagnostics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 48f2d0b3198eb..34d31028385cf 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -362,9 +362,9 @@ Here are some simple examples of where you'll run into this error: struct Foo { x: &bool } // error struct Foo<'a> { x: &'a bool } // correct -struct Bar{ x: Foo } +struct Bar { x: Foo } ^^^ expected lifetime parameter -struct Bar<'a>{ x: Foo<'a> } // correct +struct Bar<'a> { x: Foo<'a> } // correct enum Bar { A(u8), B(&bool), } // error enum Bar<'a> { A(u8), B(&'a bool), } // correct