2018-10-21 00:02:06 +03:00
|
|
|
// compile-pass
|
2019-01-06 18:33:05 +03:00
|
|
|
// compile-flags: -Z continue-parse-after-error
|
|
|
|
|
|
|
|
#![feature(box_syntax)]
|
2019-05-28 14:45:27 -04:00
|
|
|
#![allow(bare_trait_objects)]
|
2015-02-09 20:01:45 +01:00
|
|
|
|
2015-02-21 13:28:28 +02:00
|
|
|
use std::fmt::Debug;
|
2014-06-20 10:49:54 -07:00
|
|
|
|
|
|
|
fn main() {
|
2017-03-17 00:47:32 +03:00
|
|
|
let x: Box<Debug+> = box 3 as Box<Debug+>; // Trailing `+` is OK
|
2014-06-20 10:49:54 -07:00
|
|
|
}
|