summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/trailing-plus-in-bounds.rs
blob: 400649bcf752f0938e4fddacf747991df4101d51 (plain)
1
2
3
4
5
6
7
8
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
}