Skip to content

Commit f0b8167

Browse files
committed
Fix test (location_const_file)
1 parent 7b99388 commit f0b8167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/tests/panic/location.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn location_const_caller() {
1313
fn location_const_file() {
1414
const CALLER: &Location<'static> = Location::caller();
1515
const FILE: &str = CALLER.file();
16-
assert_eq!(FILE, "library/core/tests/panic/location.rs");
16+
assert_eq!(FILE, file!());
1717
}
1818

1919
#[test]

0 commit comments

Comments
 (0)