diff options
| author | woppopo <woppopo@protonmail.com> | 2022-10-08 11:48:53 +0000 |
|---|---|---|
| committer | woppopo <woppopo@protonmail.com> | 2022-10-08 11:48:53 +0000 |
| commit | f0b8167a4e7150aa77a3da8072b1b019f2c52d5d (patch) | |
| tree | 5865faa78e14b4b45d415ef178f79ac8e3cc844a /library/core/tests/panic | |
| parent | 7b993885d0d998006a352dcf93cdd319ba36a6ab (diff) | |
| download | rust-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.rs | 2 |
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] |
