]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/trailing-plus-in-bounds.rs
Merge commit '9809f5d21990d9e24b3e9876ea7da756fd4e9def' into libgccjit-codegen
[rust.git] / src / test / ui / parser / trailing-plus-in-bounds.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2
3 #![feature(box_syntax)]
4 #![allow(bare_trait_objects)]
5
6 use std::fmt::Debug;
7
8 fn main() {
9     let x: Box<Debug+> = box 3 as Box<Debug+>; // Trailing `+` is OK
10 }