rust/tests/pretty/path-type-bounds.rs
2023-01-11 09:32:08 +00:00

16 lines
219 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>;
}