diff --git a/src/test/compile-fail/E0107.rs b/src/test/compile-fail/E0107.rs index 6a5456c01095..5f333e17c478 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() {