summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/bounds-obj-parens.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/bounds-obj-parens.rs')
-rw-r--r--src/test/ui/parser/bounds-obj-parens.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/parser/bounds-obj-parens.rs b/src/test/ui/parser/bounds-obj-parens.rs
new file mode 100644
index 000000000..8c446d27d
--- /dev/null
+++ b/src/test/ui/parser/bounds-obj-parens.rs
@@ -0,0 +1,7 @@
+// check-pass
+
+#![allow(bare_trait_objects)]
+
+type A = Box<(Fn(u8) -> u8) + 'static + Send + Sync>; // OK (but see #39318)
+
+fn main() {}