]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/trailing-plus-in-bounds.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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 }