Skip to content

Commit

Permalink
Fix test (location_const_file)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilasta committed Oct 8, 2022
1 parent 96080d1 commit e82e28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tests/panic/location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn location_const_caller() {
fn location_const_file() {
const CALLER: &Location<'static> = Location::caller();
const FILE: &str = CALLER.file();
assert_eq!(FILE, "library/core/tests/panic/location.rs");
assert_eq!(FILE, file!());
}

#[test]
Expand Down

0 comments on commit e82e28d

Please sign in to comment.