We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b99388 commit f0b8167Copy full SHA for f0b8167
library/core/tests/panic/location.rs
@@ -13,7 +13,7 @@ fn location_const_caller() {
13
fn location_const_file() {
14
const CALLER: &Location<'static> = Location::caller();
15
const FILE: &str = CALLER.file();
16
- assert_eq!(FILE, "library/core/tests/panic/location.rs");
+ assert_eq!(FILE, file!());
17
}
18
19
#[test]
0 commit comments