about summary refs log tree commit diff
path: root/tests/source
diff options
context:
space:
mode:
authorMarkus Westerlind <marwes91@gmail.com>2015-11-22 19:21:01 +0100
committerMarkus Westerlind <marwes91@gmail.com>2015-11-26 21:04:49 +0100
commitc61d6d4c3a2bbaba4728e840bb29d5590a528075 (patch)
tree71c6d4d51ff79380373870dbb5f567659a780702 /tests/source
parent68bc387925e25e1168ade10d3a7c10c64ece406b (diff)
Format type aliases
Fixes #486
Diffstat (limited to 'tests/source')
-rw-r--r--tests/source/type_alias.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/source/type_alias.rs b/tests/source/type_alias.rs
new file mode 100644
index 00000000000..3f8a6ccfe3e
--- /dev/null
+++ b/tests/source/type_alias.rs
@@ -0,0 +1,16 @@
+
+type PrivateTest<'a, I> = (Box<Parser<Input=I, Output=char> + 'a>, Box<Parser<Input=I, Output=char> + 'a>);
+
+pub type PublicTest<'a, I, O> = Result<Vec<MyLongType>, Box<Parser<Input=I, Output=char> + 'a>, Box<Parser<Input=I, Output=char> + 'a>>;
+
+pub type LongGenericListTest<'a, 'b, 'c, 'd, LONGPARAMETERNAME, LONGPARAMETERNAME, LONGPARAMETERNAME, A, B, C> = Option<Vec<MyType>>;
+
+pub type Exactly100CharsTest<'a, 'b, 'c, 'd, LONGPARAMETERNAME, LONGPARAMETERNAME, A, B> = Vec<i32>;
+
+pub type Exactly101CharsTest<'a, 'b, 'c, 'd, LONGPARAMETERNAME, LONGPARAMETERNAME, A, B> = Vec<Test>;
+
+pub type CommentTest< /* Lifetime */ 'a
+            ,
+        // Type
+        T
+                    > = ();