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 ec6f622 commit 8825e1fCopy full SHA for 8825e1f
library/coretests/tests/fmt/mod.rs
@@ -30,6 +30,12 @@ fn test_format_flags() {
30
assert_eq!(format!("{:p} {:x}", p, 16), format!("{p:p} 10"));
31
32
assert_eq!(format!("{: >3}", 'a'), " a");
33
+
34
+ /// Regression test for <https://github.com/rust-lang/rust/issues/50280#issuecomment-626035934>.
35
+ fn show(a: fn() -> f32, b: fn(&Vec<i8>) -> f32) {
36
+ println!("the two pointers: {:p} {:p}", a, b);
37
+ }
38
+ show(|| 1.0, |_| 2.0);
39
}
40
41
#[test]
0 commit comments