File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ mod foo {
7
7
fn main ( ) {
8
8
let _ = Cstring :: new ( "hello" ) . unwrap ( ) ;
9
9
//~^ ERROR failed to resolve: use of undeclared type or module `Cstring`
10
+ //~| HELP a struct with a similar name exists
11
+ //~| SUGGESTION CString
10
12
11
13
let _ = foO:: bar ( ) ;
12
14
//~^ ERROR failed to resolve: use of undeclared type or module `foO`
15
+ //~| HELP a module with a similar name exists
16
+ //~| SUGGESTION foo
13
17
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ LL | let _ = Cstring::new("hello").unwrap();
8
8
| help: a struct with a similar name exists (notice the capitalization): `CString`
9
9
10
10
error[E0433]: failed to resolve: use of undeclared type or module `foO`
11
- --> $DIR/suggest-type.rs:11 :13
11
+ --> $DIR/suggest-type.rs:13 :13
12
12
|
13
13
LL | let _ = foO::bar();
14
14
| ^^^
You can’t perform that action at this time.
0 commit comments