We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3575812 commit 2061d65Copy full SHA for 2061d65
src/test/compile-fail/E0107.rs
@@ -9,20 +9,27 @@
9
// except according to those terms.
10
11
struct Foo<'a>(&'a str);
12
+struct Buzz<'a, 'b>(&'a str, &'b str);
13
14
enum Bar {
15
A,
16
B,
17
C,
18
}
19
-struct Baz<'a> {
20
+struct Baz<'a, 'b, 'c> {
21
foo: Foo,
22
//~^ ERROR E0107
23
//~| expected 1 lifetime parameter
24
+ buzz: Buzz<'a>,
25
+ //~^ ERROR E0107
26
+ //~| expected 2 lifetime parameters
27
bar: Bar<'a>,
28
29
//~| unexpected lifetime parameter
30
+ foo2: Foo<'a, 'b, 'c>,
31
32
+ //~| 2 unexpected lifetime parameters
33
34
35
fn main() {
0 commit comments