]> git.lizzy.rs Git - rust.git/blobdiff - src/test/pretty/path-type-bounds.rs
Rolling up PRs in the queue
[rust.git] / src / test / pretty / path-type-bounds.rs
index 0fdbad67f160df332fe9e313ddb4a5c59a04855a..f90937c34a6d68422fcce26e9d6a585f57b2facd 100644 (file)
 trait Tr { }
 impl Tr for int { }
 
-fn foo(x: Box<Tr: Share>) -> Box<Tr: Share> { x }
+fn foo(x: Box<Tr+ Share>) -> Box<Tr+ Share> { x }
 
 fn main() {
-    let x: Box<Tr: Share>;
+    let x: Box<Tr+ Share>;
 
-    box() 1 as Box<Tr: Share>;
+    box() 1 as Box<Tr+ Share>;
 }