We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c85760c commit 5ac1cd9Copy full SHA for 5ac1cd9
library/coretests/tests/panic/___location.rs
@@ -29,3 +29,11 @@ fn location_const_column() {
29
const COLUMN: u32 = CALLER.column();
30
assert_eq!(COLUMN, 40);
31
}
32
+
33
+#[test]
34
+fn location_debug() {
35
+ let f = format!("{:?}", Location::caller());
36
+ assert!(f.contains(&format!("{:?}", file!())));
37
+ assert!(f.contains("35"));
38
+ assert!(f.contains("29"));
39
+}
0 commit comments