]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/path-type-bounds.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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 }