summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/bounds-lifetime-where.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/bounds-lifetime-where.rs')
-rw-r--r--src/test/ui/parser/bounds-lifetime-where.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/parser/bounds-lifetime-where.rs b/src/test/ui/parser/bounds-lifetime-where.rs
new file mode 100644
index 000000000..7ff75233d
--- /dev/null
+++ b/src/test/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() {}