mirror of https://github.com/rust-lang/rust.git
16 lines
220 B
Rust
16 lines
220 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>;
|
||
|
}
|