We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e837258 + f1e613e commit 726c9f2Copy full SHA for 726c9f2
src/librustc_resolve/diagnostics.rs
@@ -627,21 +627,29 @@ trait Foo {
627
Self; // error: unresolved name `Self`
628
}
629
630
+
631
+// or:
632
+let x = unknown_variable; // error: unresolved name `unknown_variable`
633
```
634
-Please verify you didn't misspell the name or that you're not using an
-invalid object. Example:
635
+Please verify that the name wasn't misspelled and ensure that the
636
+identifier being referred to is valid for the given situation. Example:
637
638
639
enum something_that_does_exist {
640
foo
641
642
643
// or:
644
mod something_that_does_exist {
645
pub static foo : i32 = 0i32;
646
647
648
something_that_does_exist::foo; // ok!
649
650
651
+let unknown_variable = 12u32;
652
+let x = unknown_variable; // ok!
653
654
"##,
655
0 commit comments