Skip to content

Commit

Permalink
Add E0425 error explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 24, 2015
1 parent c8b9e83 commit 40617b6
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/librustc_resolve/diagnostics.rs
Expand Up @@ -457,6 +457,29 @@ impl Foo {
```
"##,

E0425: r##"
An unresolved name was used. Example of erroneous code:
```
something_that_doesnt_exist::foo; // error: unresolved name `f::foo`
```
Please verify you didn't misspell the name or that you're not using an
invalid object. Example:
```
enum something_that_does_exist {
foo
}
// or:
mod something_that_does_exist {
pub static foo : i32 = 0i32;
}
something_that_does_exist::foo; // ok!
```
"##,

E0426: r##"
An undeclared label was used. Example of erroneous code:
Expand Down Expand Up @@ -581,7 +604,6 @@ register_diagnostics! {
E0422, // does not name a structure
E0423, // is a struct variant name, but this expression uses it like a
// function name
E0425, // unresolved name
E0427, // cannot use `ref` binding mode with ...
E0429, // `self` imports are only allowed within a { } list
E0434, // can't capture dynamic environment in a fn item
Expand Down

0 comments on commit 40617b6

Please sign in to comment.