Fix test (location_const_file)
This commit is contained in:
parent
7b993885d0
commit
f0b8167a4e
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ fn location_const_caller() {
|
||||||
fn location_const_file() {
|
fn location_const_file() {
|
||||||
const CALLER: &Location<'static> = Location::caller();
|
const CALLER: &Location<'static> = Location::caller();
|
||||||
const FILE: &str = CALLER.file();
|
const FILE: &str = CALLER.file();
|
||||||
assert_eq!(FILE, "library/core/tests/panic/location.rs");
|
assert_eq!(FILE, file!());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue