summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/bounds-lifetime-where.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/bounds-lifetime-where.rs')
-rw-r--r--tests/ui/parser/bounds-lifetime-where.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/bounds-lifetime-where.rs b/tests/ui/parser/bounds-lifetime-where.rs
new file mode 100644
index 000000000..7ff75233d
--- /dev/null
+++ b/tests/ui/parser/bounds-lifetime-where.rs
@@ -0,0 +1,10 @@
+type A where 'a: 'b + 'c = u8; // OK
+type A where 'a: 'b, = u8; // OK
+type A where 'a: = u8; // OK
+type A where 'a:, = u8; // OK
+type A where 'a: 'b + 'c = u8; // OK
+type A where = u8; // OK
+type A where 'a: 'b + = u8; // OK
+type A where , = u8; //~ ERROR expected one of `;`, `=`, `where`, lifetime, or type, found `,`
+
+fn main() {}