summary refs log tree commit diff
path: root/src/test/ui/parser/trailing-plus-in-bounds.rs
blob: 33c30d731087795996a48735fd23b3dfcb18c113 (plain)
1
2
3
4
5
6
7
8
9
10
// build-pass (FIXME(62277): could be check-pass?)

#![feature(box_syntax)]
#![allow(bare_trait_objects)]

use std::fmt::Debug;

fn main() {
    let x: Box<Debug+> = box 3 as Box<Debug+>; // Trailing `+` is OK
}