1
1
error[E0106]: missing lifetime specifiers
2
- --> $DIR/missing-lifetime-specifier.rs:23 :44
2
+ --> $DIR/missing-lifetime-specifier.rs:28 :44
3
3
|
4
4
LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo>>>> = RefCell::new(HashMap::new());
5
5
| ^^^ expected 2 lifetime parameters
@@ -11,20 +11,7 @@ LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo<'static, 'static>>>>> = RefC
11
11
| ++++++++++++++++++
12
12
13
13
error[E0106]: missing lifetime specifiers
14
- --> $DIR/missing-lifetime-specifier.rs:23:44
15
- |
16
- LL | / thread_local! {
17
- LL | | static a: RefCell<HashMap<i32, Vec<Vec<Foo>>>> = RefCell::new(HashMap::new());
18
- | | ^^^ expected 2 lifetime parameters
19
- LL | |
20
- LL | |
21
- LL | | }
22
- | |_-
23
- |
24
- = help: this function's return type contains a borrowed value, but the signature does not say which one of `init`'s 3 lifetimes it is borrowed from
25
-
26
- error[E0106]: missing lifetime specifiers
27
- --> $DIR/missing-lifetime-specifier.rs:28:44
14
+ --> $DIR/missing-lifetime-specifier.rs:32:44
28
15
|
29
16
LL | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new());
30
17
| ^^^^ expected 2 lifetime parameters
@@ -38,22 +25,7 @@ LL | static b: RefCell<HashMap<i32, Vec<Vec<&'static Bar<'static, 'static>>>
38
25
| +++++++ ++++++++++++++++++
39
26
40
27
error[E0106]: missing lifetime specifiers
41
- --> $DIR/missing-lifetime-specifier.rs:28:44
42
- |
43
- LL | / thread_local! {
44
- LL | | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new());
45
- | | ^^^^ expected 2 lifetime parameters
46
- | | |
47
- | | expected named lifetime parameter
48
- LL | |
49
- LL | |
50
- LL | | }
51
- | |_-
52
- |
53
- = help: this function's return type contains a borrowed value, but the signature does not say which one of `init`'s 4 lifetimes it is borrowed from
54
-
55
- error[E0106]: missing lifetime specifiers
56
- --> $DIR/missing-lifetime-specifier.rs:33:47
28
+ --> $DIR/missing-lifetime-specifier.rs:36:47
57
29
|
58
30
LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new());
59
31
| ^ expected 2 lifetime parameters
@@ -65,20 +37,7 @@ LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> =
65
37
| +++++++++++++++++
66
38
67
39
error[E0106]: missing lifetime specifiers
68
- --> $DIR/missing-lifetime-specifier.rs:33:47
69
- |
70
- LL | / thread_local! {
71
- LL | | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new());
72
- | | ^ expected 2 lifetime parameters
73
- LL | |
74
- LL | |
75
- LL | | }
76
- | |_-
77
- |
78
- = help: this function's return type contains a borrowed value, but the signature does not say which one of `init`'s 3 lifetimes it is borrowed from
79
-
80
- error[E0106]: missing lifetime specifiers
81
- --> $DIR/missing-lifetime-specifier.rs:38:44
40
+ --> $DIR/missing-lifetime-specifier.rs:40:44
82
41
|
83
42
LL | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new());
84
43
| ^ ^ expected 2 lifetime parameters
@@ -91,23 +50,8 @@ help: consider using the `'static` lifetime, but this is uncommon unless you're
91
50
LL | static d: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
92
51
| +++++++ +++++++++++++++++
93
52
94
- error[E0106]: missing lifetime specifiers
95
- --> $DIR/missing-lifetime-specifier.rs:38:44
96
- |
97
- LL | / thread_local! {
98
- LL | | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new());
99
- | | ^ ^ expected 2 lifetime parameters
100
- | | |
101
- | | expected named lifetime parameter
102
- LL | |
103
- LL | |
104
- LL | | }
105
- | |_-
106
- |
107
- = help: this function's return type contains a borrowed value, but the signature does not say which one of `init`'s 4 lifetimes it is borrowed from
108
-
109
53
error[E0106]: missing lifetime specifier
110
- --> $DIR/missing-lifetime-specifier.rs:48 :44
54
+ --> $DIR/missing-lifetime-specifier.rs:49 :44
111
55
|
112
56
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
113
57
| ^ expected named lifetime parameter
@@ -118,30 +62,16 @@ help: consider using the `'static` lifetime, but this is uncommon unless you're
118
62
LL | static f: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
119
63
| +++++++
120
64
121
- error[E0106]: missing lifetime specifier
122
- --> $DIR/missing-lifetime-specifier.rs:48:44
123
- |
124
- LL | / thread_local! {
125
- LL | | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
126
- | | ^ expected named lifetime parameter
127
- LL | |
128
- LL | |
129
- LL | |
130
- LL | | }
131
- | |_-
132
- |
133
- = help: this function's return type contains a borrowed value, but the signature does not say which one of `init`'s 3 lifetimes it is borrowed from
134
-
135
65
error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
136
- --> $DIR/missing-lifetime-specifier.rs:44 :44
66
+ --> $DIR/missing-lifetime-specifier.rs:45 :44
137
67
|
138
68
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
139
69
| ^^^ ------- supplied 1 lifetime argument
140
70
| |
141
71
| expected 2 lifetime arguments
142
72
|
143
73
note: union defined here, with 2 lifetime parameters: `'t`, `'k`
144
- --> $DIR/missing-lifetime-specifier.rs:16 :11
74
+ --> $DIR/missing-lifetime-specifier.rs:21 :11
145
75
|
146
76
LL | pub union Qux<'t, 'k, I> {
147
77
| ^^^ -- --
@@ -151,15 +81,15 @@ LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> =
151
81
| +++++++++
152
82
153
83
error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
154
- --> $DIR/missing-lifetime-specifier.rs:48 :45
84
+ --> $DIR/missing-lifetime-specifier.rs:49 :45
155
85
|
156
86
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
157
87
| ^^^ ------- supplied 1 lifetime argument
158
88
| |
159
89
| expected 2 lifetime arguments
160
90
|
161
91
note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
162
- --> $DIR/missing-lifetime-specifier.rs:20 :7
92
+ --> $DIR/missing-lifetime-specifier.rs:25 :7
163
93
|
164
94
LL | trait Tar<'t, 'k, I> {}
165
95
| ^^^ -- --
@@ -168,7 +98,7 @@ help: add missing lifetime argument
168
98
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
169
99
| +++++++++
170
100
171
- error: aborting due to 12 previous errors
101
+ error: aborting due to 7 previous errors
172
102
173
103
Some errors have detailed explanations: E0106, E0107.
174
104
For more information about an error, try `rustc --explain E0106`.
0 commit comments