about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOmer Sheikh <ojsheikh@gmail.com>2016-08-05 22:56:10 +0500
committerOmer Sheikh <ojsheikh@gmail.com>2016-08-05 22:56:10 +0500
commit2061d656e5ba2225a58e1073c9a0a22eef4f0ece (patch)
treefb09753d81022ef19c3347c3bcd2ecced755322b /src
parent3575812e449e8a174b67023ee0879f573f8a6d1f (diff)
Add E0107 tests for multiple lifetime params
Diffstat (limited to 'src')
-rw-r--r--src/test/compile-fail/E0107.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/test/compile-fail/E0107.rs b/src/test/compile-fail/E0107.rs
index 6a5456c0109..5f333e17c47 100644
--- a/src/test/compile-fail/E0107.rs
+++ b/src/test/compile-fail/E0107.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 struct Foo<'a>(&'a str);
+struct Buzz<'a, 'b>(&'a str, &'b str);
 
 enum Bar {
     A,
@@ -16,13 +17,19 @@ enum Bar {
     C,
 }
 
-struct Baz<'a> {
+struct Baz<'a, 'b, 'c> {
     foo: Foo,
     //~^ ERROR E0107
     //~| expected 1 lifetime parameter
+    buzz: Buzz<'a>,
+    //~^ ERROR E0107
+    //~| expected 2 lifetime parameters
     bar: Bar<'a>,
     //~^ ERROR E0107
     //~| unexpected lifetime parameter
+    foo2: Foo<'a, 'b, 'c>,
+    //~^ ERROR E0107
+    //~| 2 unexpected lifetime parameters
 }
 
 fn main() {