]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/path-type-bounds.rs
Rollup merge of #106173 - compiler-errors:deduplicate-op-methods, r=jackh726
[rust.git] / src / test / pretty / path-type-bounds.rs
1 // pp-exact
2
3
4 trait Tr {
5     fn dummy(&self) {}
6 }
7 impl Tr for isize {}
8
9 fn foo<'a>(x: Box<Tr + Sync + 'a>) -> Box<Tr + Sync + 'a> { x }
10
11 fn main() {
12     let x: Box<Tr + Sync>;
13
14     Box::new(1isize) as Box<Tr + Sync>;
15 }