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 0cb5f5dCopy full SHA for 0cb5f5d
tests/ui/traits/fmt-pointer-trait.rs
@@ -3,6 +3,11 @@ use std::ptr;
3
use std::rc::Rc;
4
use std::sync::Arc;
5
6
+/// Regression test for <https://github.com/rust-lang/rust/issues/50280#issuecomment-626035934>
7
+fn show(a: fn () -> f32, b: fn (&Vec<i8>)->f32) {
8
+ println!("the two pointers: {:p} {:p}", a, b);
9
+}
10
+
11
fn main() {
12
let p: *const u8 = ptr::null();
13
let rc = Rc::new(1usize);
@@ -21,4 +26,6 @@ fn main() {
21
26
}
22
27
assert_eq!(format!("{:p}", p),
23
28
"0x0");
29
30
+ show(|| 1.0, |_| 2.0);
24
31
0 commit comments