]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/trailing-plus-in-bounds.rs
Merge commit 'e8dca3e87d164d2806098c462c6ce41301341f68' into sync_from_cg_gcc
[rust.git] / src / test / ui / parser / trailing-plus-in-bounds.rs
1 // check-pass
2
3 #![allow(bare_trait_objects)]
4
5 use std::fmt::Debug;
6
7 fn main() {
8     let x: Box<Debug+> = Box::new(3) as Box<Debug+>; // Trailing `+` is OK
9 }