rust/tests/pretty/path-type-bounds.rs

16 lines
220 B
Rust

//@ pp-exact
trait Tr {
fn dummy(&self) {}
}
impl Tr for isize {}
fn foo<'a>(x: Box<Tr + Sync + 'a>) -> Box<Tr + Sync + 'a> { x }
fn main() {
let x: Box<Tr + Sync>;
Box::new(1isize) as Box<Tr + Sync>;
}