Co-Authored-By: lzutao <taolzu@gmail.com>
This commit is contained in:
Adam Perry 2020-01-04 22:54:09 -08:00 committed by GitHub
parent 7a6af7eb0e
commit b97ee0f07a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!();
}