Skip to content

Commit e01e8b9

Browse files
committed
add ui test
1 parent 27ea4c8 commit e01e8b9

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main() {
2+
let a_longer_variable_name = 1;
3+
println!("{}", a_variable_longer_name); //~ ERROR E0425
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0425]: cannot find value `a_variable_longer_name` in this scope
2+
--> $DIR/issue-66968-suggest-sorted-words.rs:3:20
3+
|
4+
LL | println!("{}", a_variable_longer_name);
5+
| ^^^^^^^^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `a_longer_variable_name`
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0425`.

0 commit comments

Comments
 (0)