]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/trailing-plus-in-bounds.rs
Merge commit '54a20a02ecd0e1352a871aa0990bcc8b8b03173e' into clippyup
[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 }