diff --git a/src/librustc_resolve/diagnostics.rs b/src/librustc_resolve/diagnostics.rs index d3c393d7fd569..3bac178b09b27 100644 --- a/src/librustc_resolve/diagnostics.rs +++ b/src/librustc_resolve/diagnostics.rs @@ -632,8 +632,8 @@ trait Foo { 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 {