about summary refs log tree commit diff
path: root/library/core/tests/panic
diff options
context:
space:
mode:
authorwoppopo <woppopo@protonmail.com>2022-10-08 11:48:53 +0000
committerwoppopo <woppopo@protonmail.com>2022-10-08 11:48:53 +0000
commitf0b8167a4e7150aa77a3da8072b1b019f2c52d5d (patch)
tree5865faa78e14b4b45d415ef178f79ac8e3cc844a /library/core/tests/panic
parent7b993885d0d998006a352dcf93cdd319ba36a6ab (diff)
downloadrust-f0b8167a4e7150aa77a3da8072b1b019f2c52d5d.tar.gz
rust-f0b8167a4e7150aa77a3da8072b1b019f2c52d5d.zip
Fix test (location_const_file)
Diffstat (limited to 'library/core/tests/panic')
-rw-r--r--library/core/tests/panic/location.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/tests/panic/location.rs b/library/core/tests/panic/location.rs
index 9df626a8326..d20241d8380 100644
--- a/library/core/tests/panic/location.rs
+++ b/library/core/tests/panic/location.rs
@@ -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]