Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Co-Authored-By: lzutao <taolzu@gmail.com>
  • Loading branch information
anp and tesuji authored Jan 5, 2020
1 parent 7a6af7e commit b97ee0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/ui/rfc-2091-track-caller/std-panic-locations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fn main() {
// inspect the `PanicInfo` we receive to ensure the right file is the source
std::panic::set_hook(Box::new(|info| {
let actual = info.location().unwrap();
if actual.file() != file!(){
if actual.file() != file!() {
eprintln!("expected a location in the test file, found {:?}", actual);
panic!();
}
Expand Down

0 comments on commit b97ee0f

Please sign in to comment.