]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/path-type-bounds.rs
Rollup merge of #95346 - Aaron1011:stablize-const-extern-fn, r=pnkfelix
[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 }