diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-07 15:44:12 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-07 19:13:31 +0300 |
| commit | 5c160f511e321a89eef01fcf17c6cc4c0f4e5c00 (patch) | |
| tree | 016abaa173e463d7a708e6def26c9b41a18d0a32 /tests/ui/resolve | |
| parent | b86b3fb640e4f914db9013872e8ff67b74ba286d (diff) | |
| download | rust-5c160f511e321a89eef01fcf17c6cc4c0f4e5c00.tar.gz rust-5c160f511e321a89eef01fcf17c6cc4c0f4e5c00.zip | |
compiletest: Stricter parsing for diagnostic kinds
Diffstat (limited to 'tests/ui/resolve')
| -rw-r--r-- | tests/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs b/tests/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs index ecd3f588119..7216b0294dc 100644 --- a/tests/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs +++ b/tests/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs @@ -4,15 +4,15 @@ struct A { impl A { fn new(cofig: String) -> Self { - Self { config } //~ Error cannot find value `config` in this scope + Self { config } //~ ERROR cannot find value `config` in this scope } fn do_something(cofig: String) { - println!("{config}"); //~ Error cannot find value `config` in this scope + println!("{config}"); //~ ERROR cannot find value `config` in this scope } fn self_is_available(self, cofig: String) { - println!("{config}"); //~ Error cannot find value `config` in this scope + println!("{config}"); //~ ERROR cannot find value `config` in this scope } } |
