Skip to content

Commit

Permalink
Improve examples in the E0255/E0256 error explanations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Hamann committed May 14, 2015
1 parent 06aef33 commit d636b5c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/librustc_resolve/diagnostics.rs
Expand Up @@ -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() {}
Expand All @@ -121,7 +121,7 @@ An example of this error:
```
use foo::Bar; // error
struct Bar;
type Bar = u32;
mod foo {
pub mod Bar { }
Expand Down

0 comments on commit d636b5c

Please sign in to comment.