diff options
Diffstat (limited to 'tests/ui/parser/trailing-plus-in-bounds.rs')
-rw-r--r-- | tests/ui/parser/trailing-plus-in-bounds.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/parser/trailing-plus-in-bounds.rs b/tests/ui/parser/trailing-plus-in-bounds.rs new file mode 100644 index 000000000..400649bcf --- /dev/null +++ b/tests/ui/parser/trailing-plus-in-bounds.rs @@ -0,0 +1,9 @@ +// check-pass + +#![allow(bare_trait_objects)] + +use std::fmt::Debug; + +fn main() { + let x: Box<Debug+> = Box::new(3) as Box<Debug+>; // Trailing `+` is OK +} |