Skip to content

Commit 9863a9b

Browse files
committed
Add error annotations for existing tests
1 parent 8a468d2 commit 9863a9b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/test/ui/resolve/suggest-type.rs

+4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ mod foo {
77
fn main() {
88
let _ = Cstring::new("hello").unwrap();
99
//~^ ERROR failed to resolve: use of undeclared type or module `Cstring`
10+
//~| HELP a struct with a similar name exists
11+
//~| SUGGESTION CString
1012

1113
let _ = foO::bar();
1214
//~^ ERROR failed to resolve: use of undeclared type or module `foO`
15+
//~| HELP a module with a similar name exists
16+
//~| SUGGESTION foo
1317
}

src/test/ui/resolve/suggest-type.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | let _ = Cstring::new("hello").unwrap();
88
| help: a struct with a similar name exists (notice the capitalization): `CString`
99

1010
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
1212
|
1313
LL | let _ = foO::bar();
1414
| ^^^

0 commit comments

Comments
 (0)