summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.stderr')
-rw-r--r--src/test/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.stderr109
1 files changed, 0 insertions, 109 deletions
diff --git a/src/test/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.stderr b/src/test/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.stderr
deleted file mode 100644
index f32e0404e..000000000
--- a/src/test/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.stderr
+++ /dev/null
@@ -1,109 +0,0 @@
-error[E0425]: cannot find value `config` in this scope
- --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:7:16
- |
-LL | Self { config }
- | ^^^^^^
- | |
- | a field by this name exists in `Self`
- | help: a local variable with a similar name exists: `cofig`
-
-error[E0425]: cannot find value `config` in this scope
- --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:11:20
- |
-LL | println!("{config}");
- | ^^^^^^
- | |
- | a field by this name exists in `Self`
- | help: a local variable with a similar name exists: `cofig`
-
-error[E0425]: cannot find value `config` in this scope
- --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:15:20
- |
-LL | println!("{config}");
- | ^^^^^^
- |
-help: you might have meant to use the available field
- |
-LL | println!("{self.config}");
- | ~~~~~~~~~~~
-help: a local variable with a similar name exists
- |
-LL | println!("{cofig}");
- | ~~~~~
-
-error[E0425]: cannot find value `bah` in this scope
- --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:33:9
- |
-LL | bah;
- | ^^^
-...
-LL | fn ba() {}
- | ------- similarly named function `ba` defined here
- |
-help: you might have meant to refer to the associated function
- |
-LL | Self::bah;
- | ~~~~~~~~~
-help: a function with a similar name exists
- |
-LL | ba;
- | ~~
-
-error[E0425]: cannot find value `BAR` in this scope
- --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:35:9
- |
-LL | BAR;
- | ^^^
-...
-LL | const BARR: u32 = 3;
- | -------------------- similarly named constant `BARR` defined here
- |
-help: you might have meant to use the associated `const`
- |
-LL | Self::BAR;
- | ~~~~~~~~~
-help: a constant with a similar name exists
- |
-LL | BARR;
- | ~~~~
-
-error[E0412]: cannot find type `Baz` in this scope
- --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:37:18
- |
-LL | let foo: Baz = "".to_string();
- | ^^^
-...
-LL | type Bar = String;
- | ------------------ similarly named type alias `Bar` defined here
- |
-help: you might have meant to use the associated type
- |
-LL | let foo: Self::Baz = "".to_string();
- | ~~~~~~~~~
-help: a type alias with a similar name exists
- |
-LL | let foo: Bar = "".to_string();
- | ~~~
-
-error[E0425]: cannot find function `baz` in this scope
- --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:31:9
- |
-LL | baz();
- | ^^^
-...
-LL | fn ba() {}
- | ------- similarly named function `ba` defined here
- |
-help: you might have meant to call the method
- |
-LL | self.baz();
- | ~~~~~~~~
-help: a function with a similar name exists
- |
-LL | ba();
- | ~~
-
-error: aborting due to 7 previous errors
-
-Some errors have detailed explanations: E0412, E0425.
-For more information about an error, try `rustc --explain E0412`.