Skip to content

Commit

Permalink
Rollup merge of rust-lang#27635 - GuillaumeGomez:patch-4, r=Manishearth
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Aug 11, 2015
2 parents 8622dc3 + f1e613e commit 8f83e2c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/librustc_resolve/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,21 +627,29 @@ trait Foo {
Self; // error: unresolved name `Self`
}
}
// or:
let x = unknown_variable; // error: unresolved name `unknown_variable`
```
Please verify you didn't misspell the name or that you're not using an
invalid object. Example:
Please verify that the name wasn't misspelled and ensure that the
identifier being referred to is valid for the given situation. Example:
```
enum something_that_does_exist {
foo
}
// or:
mod something_that_does_exist {
pub static foo : i32 = 0i32;
}
something_that_does_exist::foo; // ok!
// or:
let unknown_variable = 12u32;
let x = unknown_variable; // ok!
```
"##,

Expand Down

0 comments on commit 8f83e2c

Please sign in to comment.