From f0b8167a4e7150aa77a3da8072b1b019f2c52d5d Mon Sep 17 00:00:00 2001 From: woppopo Date: Sat, 8 Oct 2022 11:48:53 +0000 Subject: [PATCH] Fix test (location_const_file) --- library/core/tests/panic/location.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/tests/panic/location.rs b/library/core/tests/panic/location.rs index 9df626a8326c..d20241d83800 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]