@@ -5,27 +5,27 @@ use core::panic::Location;
5
5
6
6
#[ test]
7
7
fn location_const_caller ( ) {
8
- const _CALLER_REFERENCE: & Location < ' static > = Location :: caller ( ) ;
9
- const _CALLER: Location < ' static > = * Location :: caller ( ) ;
8
+ const _CALLER_REFERENCE: & Location < ' static > = Location :: caller ( ) ;
9
+ const _CALLER: Location < ' static > = * Location :: caller ( ) ;
10
10
}
11
11
12
12
#[ test]
13
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" ) ;
14
+ const CALLER : & Location < ' static > = Location :: caller ( ) ;
15
+ const FILE : & str = CALLER . file ( ) ;
16
+ assert_eq ! ( FILE , "library/core/tests/panic/location.rs" ) ;
17
17
}
18
18
19
19
#[ test]
20
20
fn location_const_line ( ) {
21
- const CALLER : & Location < ' static > = Location :: caller ( ) ;
22
- const LINE : u32 = CALLER . line ( ) ;
23
- assert_eq ! ( LINE , 21 ) ;
21
+ const CALLER : & Location < ' static > = Location :: caller ( ) ;
22
+ const LINE : u32 = CALLER . line ( ) ;
23
+ assert_eq ! ( LINE , 21 ) ;
24
24
}
25
25
26
26
#[ test]
27
27
fn location_const_column ( ) {
28
- const CALLER : & Location < ' static > = Location :: caller ( ) ;
29
- const COLUMN : u32 = CALLER . column ( ) ;
30
- assert_eq ! ( COLUMN , 39 ) ;
28
+ const CALLER : & Location < ' static > = Location :: caller ( ) ;
29
+ const COLUMN : u32 = CALLER . column ( ) ;
30
+ assert_eq ! ( COLUMN , 40 ) ;
31
31
}
0 commit comments