diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-10767.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-10767.rs b/src/test/ui/issues/issue-10767.rs new file mode 100644 index 000000000..f40815fdb --- /dev/null +++ b/src/test/ui/issues/issue-10767.rs @@ -0,0 +1,10 @@ +// run-pass +// pretty-expanded FIXME #23616 + +#![feature(box_syntax)] + +pub fn main() { + fn f() { + } + let _: Box<fn()> = box (f as fn()); +} |