2019-07-03 06:30:28 +09:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2019-05-30 18:55:09 -07:00
|
|
|
|
2019-01-06 18:33:05 +03:00
|
|
|
#![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
|
|
|
}
|