1 error[E0425]: cannot find value `config` in this scope
2 --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:7:16
7 | a field by this name exists in `Self`
8 | help: a local variable with a similar name exists: `cofig`
10 error[E0425]: cannot find value `config` in this scope
11 --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:11:20
13 LL | println!("{config}");
16 | a field by this name exists in `Self`
17 | help: a local variable with a similar name exists: `cofig`
19 error[E0425]: cannot find value `config` in this scope
20 --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:15:20
22 LL | println!("{config}");
25 help: you might have meant to use the available field
27 LL | println!("{self.config}");
29 help: a local variable with a similar name exists
31 LL | println!("{cofig}");
34 error[E0425]: cannot find value `bah` in this scope
35 --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:33:9
41 | ------- similarly named function `ba` defined here
43 help: you might have meant to refer to the associated function
47 help: a function with a similar name exists
52 error[E0425]: cannot find value `BAR` in this scope
53 --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:35:9
58 LL | const BARR: u32 = 3;
59 | -------------------- similarly named constant `BARR` defined here
61 help: you might have meant to use the associated `const`
65 help: a constant with a similar name exists
70 error[E0412]: cannot find type `Baz` in this scope
71 --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:37:18
73 LL | let foo: Baz = "".to_string();
76 LL | type Bar = String;
77 | ------------------ similarly named type alias `Bar` defined here
79 help: you might have meant to use the associated type
81 LL | let foo: Self::Baz = "".to_string();
83 help: a type alias with a similar name exists
85 LL | let foo: Bar = "".to_string();
88 error[E0425]: cannot find function `baz` in this scope
89 --> $DIR/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs:31:9
95 | ------- similarly named function `ba` defined here
97 help: you might have meant to call the method
101 help: a function with a similar name exists
106 error: aborting due to 7 previous errors
108 Some errors have detailed explanations: E0412, E0425.
109 For more information about an error, try `rustc --explain E0412`.