summary refs log tree commit diff
path: root/src/test/ui/parser/trailing-plus-in-bounds.rs
blob: 61819cabdf178514905a96e47a0525a298835d83 (plain)
1
2
3
4
5
6
7
8
9
// build-pass (FIXME(62277): could be 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
}