From d636b5cf659771d74a5e225b751898f69a35ae9a Mon Sep 17 00:00:00 2001 From: Nick Hamann Date: Thu, 14 May 2015 02:50:39 -0500 Subject: [PATCH] Improve examples in the E0255/E0256 error explanations. --- src/librustc_resolve/diagnostics.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/librustc_resolve/diagnostics.rs b/src/librustc_resolve/diagnostics.rs index cd941c65b9da..15ddcbc80749 100644 --- a/src/librustc_resolve/diagnostics.rs +++ b/src/librustc_resolve/diagnostics.rs @@ -100,12 +100,12 @@ module. An example of this error: ``` -use foo::FOO; // error, do `use foo::FOO as BAR` instead +use bar::foo; // error, do `use bar::foo as baz` instead -fn FOO() {} +fn foo() {} -mod foo { - pub const FOO: bool = true; +mod bar { + pub fn foo() {} } fn main() {} @@ -121,7 +121,7 @@ An example of this error: ``` use foo::Bar; // error -struct Bar; +type Bar = u32; mod foo { pub mod Bar { }