commit
726c9f2c80
1 changed files with 10 additions and 2 deletions
|
@ -627,21 +627,29 @@ trait Foo {
|
||||||
Self; // error: unresolved name `Self`
|
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
|
Please verify that the name wasn't misspelled and ensure that the
|
||||||
invalid object. Example:
|
identifier being referred to is valid for the given situation. Example:
|
||||||
|
|
||||||
```
|
```
|
||||||
enum something_that_does_exist {
|
enum something_that_does_exist {
|
||||||
foo
|
foo
|
||||||
}
|
}
|
||||||
|
|
||||||
// or:
|
// or:
|
||||||
mod something_that_does_exist {
|
mod something_that_does_exist {
|
||||||
pub static foo : i32 = 0i32;
|
pub static foo : i32 = 0i32;
|
||||||
}
|
}
|
||||||
|
|
||||||
something_that_does_exist::foo; // ok!
|
something_that_does_exist::foo; // ok!
|
||||||
|
|
||||||
|
// or:
|
||||||
|
let unknown_variable = 12u32;
|
||||||
|
let x = unknown_variable; // ok!
|
||||||
```
|
```
|
||||||
"##,
|
"##,
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue