11error[E0106]: missing lifetime specifiers
2- --> $DIR/missing-lifetime-specifier.rs:23 :44
2+ --> $DIR/missing-lifetime-specifier.rs:28 :44
33 |
44LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo>>>> = RefCell::new(HashMap::new());
55 | ^^^ expected 2 lifetime parameters
@@ -11,20 +11,7 @@ LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo<'static, 'static>>>>> = RefC
1111 | ++++++++++++++++++
1212
1313error[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
2815 |
2916LL | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new());
3017 | ^^^^ expected 2 lifetime parameters
@@ -38,22 +25,7 @@ LL | static b: RefCell<HashMap<i32, Vec<Vec<&'static Bar<'static, 'static>>>
3825 | +++++++ ++++++++++++++++++
3926
4027error[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
5729 |
5830LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new());
5931 | ^ expected 2 lifetime parameters
@@ -65,20 +37,7 @@ LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> =
6537 | +++++++++++++++++
6638
6739error[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
8241 |
8342LL | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new());
8443 | ^ ^ expected 2 lifetime parameters
@@ -91,23 +50,8 @@ help: consider using the `'static` lifetime, but this is uncommon unless you're
9150LL | static d: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
9251 | +++++++ +++++++++++++++++
9352
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-
10953error[E0106]: missing lifetime specifier
110- --> $DIR/missing-lifetime-specifier.rs:48 :44
54+ --> $DIR/missing-lifetime-specifier.rs:49 :44
11155 |
11256LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
11357 | ^ expected named lifetime parameter
@@ -118,30 +62,16 @@ help: consider using the `'static` lifetime, but this is uncommon unless you're
11862LL | static f: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
11963 | +++++++
12064
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-
13565error[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
13767 |
13868LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
13969 | ^^^ ------- supplied 1 lifetime argument
14070 | |
14171 | expected 2 lifetime arguments
14272 |
14373note: 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
14575 |
14676LL | pub union Qux<'t, 'k, I> {
14777 | ^^^ -- --
@@ -151,15 +81,15 @@ LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> =
15181 | +++++++++
15282
15383error[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
15585 |
15686LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
15787 | ^^^ ------- supplied 1 lifetime argument
15888 | |
15989 | expected 2 lifetime arguments
16090 |
16191note: 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
16393 |
16494LL | trait Tar<'t, 'k, I> {}
16595 | ^^^ -- --
@@ -168,7 +98,7 @@ help: add missing lifetime argument
16898LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
16999 | +++++++++
170100
171- error: aborting due to 12 previous errors
101+ error: aborting due to 7 previous errors
172102
173103Some errors have detailed explanations: E0106, E0107.
174104For more information about an error, try `rustc --explain E0106`.
0 commit comments