rust/tests/pretty/path-type-bounds.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
220 B
Rust
Raw Normal View History

//@ pp-exact
trait Tr {
2021-12-01 13:45:14 -06:00
fn dummy(&self) {}
}
2021-12-01 13:45:14 -06:00
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>;
}