File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -627,21 +627,29 @@ trait Foo {
627
627
Self; // error: unresolved name `Self`
628
628
}
629
629
}
630
+
631
+ // or:
632
+ let x = unknown_variable; // error: unresolved name `unknown_variable`
630
633
```
631
634
632
- Please verify you didn't misspell the name or that you're not using an
633
- 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:
634
637
635
638
```
636
639
enum something_that_does_exist {
637
640
foo
638
641
}
642
+
639
643
// or:
640
644
mod something_that_does_exist {
641
645
pub static foo : i32 = 0i32;
642
646
}
643
647
644
648
something_that_does_exist::foo; // ok!
649
+
650
+ // or:
651
+ let unknown_variable = 12u32;
652
+ let x = unknown_variable; // ok!
645
653
```
646
654
"## ,
647
655
You can’t perform that action at this time.
0 commit comments