summary refs log tree commit diff
path: root/src/test/ui/parser/trailing-plus-in-bounds.rs
blob: 153f942b978a88d979c8d6e6ce4b94853dc1fa2d (plain)
1
2
3
4
5
6
7
8
9
10
// compile-pass
// compile-flags: -Z continue-parse-after-error

#![feature(box_syntax)]

use std::fmt::Debug;

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