2020-04-17 12:33:42 +08:00
error[E0106]: missing lifetime specifiers
2024-05-25 15:37:08 +08:00
--> $DIR/missing-lifetime-specifier.rs:28:44
2020-04-17 12:33:42 +08:00
|
LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo>>>> = RefCell::new(HashMap::new());
| ^^^ expected 2 lifetime parameters
|
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
2023-11-15 04:36:49 +08:00
help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`, or if you will only have owned values
2020-04-17 12:33:42 +08:00
|
LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo<'static, 'static>>>>> = RefCell::new(HashMap::new());
2022-06-06 00:33:09 +08:00
| ++++++++++++++++++
2020-04-17 12:33:42 +08:00
error[E0106]: missing lifetime specifiers
2024-05-25 15:37:08 +08:00
--> $DIR/missing-lifetime-specifier.rs:32:44
2020-04-17 12:33:42 +08:00
|
LL | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new());
2022-06-06 00:33:09 +08:00
| ^^^^ expected 2 lifetime parameters
| |
| expected named lifetime parameter
2020-04-17 12:33:42 +08:00
|
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
2023-11-15 04:36:49 +08:00
help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`
2020-04-17 12:33:42 +08:00
|
2022-06-06 00:33:09 +08:00
LL | static b: RefCell<HashMap<i32, Vec<Vec<&'static Bar<'static, 'static>>>>> = RefCell::new(HashMap::new());
| +++++++ ++++++++++++++++++
2020-04-17 12:33:42 +08:00
error[E0106]: missing lifetime specifiers
2024-05-25 15:37:08 +08:00
--> $DIR/missing-lifetime-specifier.rs:36:47
2020-04-17 12:33:42 +08:00
|
LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new());
2022-06-06 00:33:09 +08:00
| ^ expected 2 lifetime parameters
2020-04-17 12:33:42 +08:00
|
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
2023-11-15 04:36:49 +08:00
help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`, or if you will only have owned values
2020-04-17 12:33:42 +08:00
|
LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
2021-06-22 10:07:19 +08:00
| +++++++++++++++++
2020-04-17 12:33:42 +08:00
error[E0106]: missing lifetime specifiers
2024-05-25 15:37:08 +08:00
--> $DIR/missing-lifetime-specifier.rs:40:44
2020-04-17 12:33:42 +08:00
|
LL | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new());
2022-06-06 00:33:09 +08:00
| ^ ^ expected 2 lifetime parameters
| |
| expected named lifetime parameter
2020-04-17 12:33:42 +08:00
|
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
2023-11-15 04:36:49 +08:00
help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`
2020-04-17 12:33:42 +08:00
|
2022-06-06 00:33:09 +08:00
LL | static d: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
| +++++++ +++++++++++++++++
2020-04-17 12:33:42 +08:00
2022-06-06 00:33:09 +08:00
error[E0106]: missing lifetime specifier
2024-05-25 15:37:08 +08:00
--> $DIR/missing-lifetime-specifier.rs:49:44
2022-06-06 00:33:09 +08:00
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
| ^ expected named lifetime parameter
|
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
2023-11-15 04:36:49 +08:00
help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`
2022-06-06 00:33:09 +08:00
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
| +++++++
2023-02-24 01:27:06 +08:00
error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
2024-05-25 15:37:08 +08:00
--> $DIR/missing-lifetime-specifier.rs:45:44
2020-04-17 12:33:42 +08:00
|
2021-12-21 02:24:40 +08:00
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
| ^^^ ------- supplied 1 lifetime argument
| |
| expected 2 lifetime arguments
2020-04-17 12:33:42 +08:00
|
2021-12-21 02:24:40 +08:00
note: union defined here, with 2 lifetime parameters: `'t`, `'k`
2024-05-25 15:37:08 +08:00
--> $DIR/missing-lifetime-specifier.rs:21:11
2021-12-21 02:24:40 +08:00
|
LL | pub union Qux<'t, 'k, I> {
| ^^^ -- --
help: add missing lifetime argument
|
2022-06-05 15:59:26 +08:00
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
| +++++++++
2020-04-17 12:33:42 +08:00
2023-02-24 01:27:06 +08:00
error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
2024-05-25 15:37:08 +08:00
--> $DIR/missing-lifetime-specifier.rs:49:45
2020-04-17 12:33:42 +08:00
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
2021-01-03 02:45:11 +08:00
| ^^^ ------- supplied 1 lifetime argument
| |
| expected 2 lifetime arguments
|
note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
2024-05-25 15:37:08 +08:00
--> $DIR/missing-lifetime-specifier.rs:25:7
2021-01-03 02:45:11 +08:00
|
LL | trait Tar<'t, 'k, I> {}
| ^^^ -- --
help: add missing lifetime argument
|
2022-06-05 15:59:26 +08:00
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
| +++++++++
2020-04-17 12:33:42 +08:00
2024-05-25 15:37:08 +08:00
error: aborting due to 7 previous errors
2020-04-17 12:33:42 +08:00
2020-08-14 09:30:00 +08:00
Some errors have detailed explanations: E0106, E0107.
2020-04-17 12:33:42 +08:00
For more information about an error, try `rustc --explain E0106`.