Skip to content

Commit

Permalink
add ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
cjkenn committed Jan 4, 2020
1 parent 27ea4c8 commit e01e8b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/ui/suggestions/issue-66968-suggest-sorted-words.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main() {
let a_longer_variable_name = 1;
println!("{}", a_variable_longer_name); //~ ERROR E0425
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
error[E0425]: cannot find value `a_variable_longer_name` in this scope
--> $DIR/issue-66968-suggest-sorted-words.rs:3:20
|
LL | println!("{}", a_variable_longer_name);
| ^^^^^^^^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `a_longer_variable_name`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.

0 comments on commit e01e8b9

Please sign in to comment.