diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-08-10 15:29:06 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-08-10 15:29:06 +0200 |
| commit | 347991540a53643cf2bec1acca30ee76d11e1b25 (patch) | |
| tree | ef690f49e3f082a62acb95fcc006ed1db814ec57 | |
| parent | febdc3b201bcce1546c88e3be1b956d3f90d3059 (diff) | |
| download | rust-347991540a53643cf2bec1acca30ee76d11e1b25.tar.gz rust-347991540a53643cf2bec1acca30ee76d11e1b25.zip | |
Add another example for E0425
| -rw-r--r-- | src/librustc_resolve/diagnostics.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librustc_resolve/diagnostics.rs b/src/librustc_resolve/diagnostics.rs index 5c55fc53e02..d3c393d7fd5 100644 --- a/src/librustc_resolve/diagnostics.rs +++ b/src/librustc_resolve/diagnostics.rs @@ -627,6 +627,9 @@ 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 @@ -636,12 +639,17 @@ 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! + +// or: +let unknown_variable = 12u32; +let x = unknown_variable; // ok! ``` "##, |
