diff options
Diffstat (limited to 'src/test/pretty/path-type-bounds.rs')
-rw-r--r-- | src/test/pretty/path-type-bounds.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/pretty/path-type-bounds.rs b/src/test/pretty/path-type-bounds.rs new file mode 100644 index 000000000..f1970de6f --- /dev/null +++ b/src/test/pretty/path-type-bounds.rs @@ -0,0 +1,15 @@ +// 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>; +} |