]> git.lizzy.rs Git - rust.git/blob - tests/pretty/path-type-bounds.rs
Rollup merge of #107756 - RalfJung:miri-out-of-addresses, r=oli-obk
[rust.git] / tests / 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 }