2020-04-16 23:33:42 -05:00
|
|
|
error[E0106]: missing lifetime specifiers
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:18:44
|
|
|
|
|
|
|
|
|
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
|
2020-04-17 12:46:22 -05:00
|
|
|
help: consider using the `'static` lifetime
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo<'static, 'static>>>>> = RefCell::new(HashMap::new());
|
2022-06-05 11:33:09 -05:00
|
|
|
| ++++++++++++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
error[E0106]: missing lifetime specifiers
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:18:44
|
|
|
|
|
|
2021-12-20 12:24:40 -06:00
|
|
|
LL | / thread_local! {
|
|
|
|
LL | | static a: RefCell<HashMap<i32, Vec<Vec<Foo>>>> = RefCell::new(HashMap::new());
|
|
|
|
| | ^^^ expected 2 lifetime parameters
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
| |_-
|
|
|
|
|
|
|
|
|
= 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
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2022-06-05 11:33:09 -05:00
|
|
|
error[E0106]: missing lifetime specifiers
|
2020-04-16 23:33:42 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:23:44
|
|
|
|
|
|
|
|
|
LL | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new());
|
2022-06-05 11:33:09 -05:00
|
|
|
| ^^^^ expected 2 lifetime parameters
|
|
|
|
| |
|
|
|
|
| expected named lifetime parameter
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
|
2020-04-17 12:46:22 -05:00
|
|
|
help: consider using the `'static` lifetime
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
2022-06-05 11:33:09 -05:00
|
|
|
LL | static b: RefCell<HashMap<i32, Vec<Vec<&'static Bar<'static, 'static>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++ ++++++++++++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
error[E0106]: missing lifetime specifiers
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:23:44
|
|
|
|
|
|
2021-12-20 12:24:40 -06:00
|
|
|
LL | / thread_local! {
|
|
|
|
LL | | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new());
|
2022-06-05 11:33:09 -05:00
|
|
|
| | ^^^^ expected 2 lifetime parameters
|
|
|
|
| | |
|
|
|
|
| | expected named lifetime parameter
|
2021-12-20 12:24:40 -06:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
| |_-
|
|
|
|
|
|
|
|
|
= 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
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
error[E0106]: missing lifetime specifiers
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:28:47
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new());
|
2022-06-05 11:33:09 -05:00
|
|
|
| ^ expected 2 lifetime parameters
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
|
2020-04-17 12:46:22 -05:00
|
|
|
help: consider using the `'static` lifetime
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++++++++++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
error[E0106]: missing lifetime specifiers
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:28:47
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
2021-12-20 12:24:40 -06:00
|
|
|
LL | / thread_local! {
|
|
|
|
LL | | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new());
|
2022-06-05 11:33:09 -05:00
|
|
|
| | ^ expected 2 lifetime parameters
|
2021-12-20 12:24:40 -06:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
| |_-
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
2021-12-20 12:24:40 -06:00
|
|
|
= 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
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
error[E0106]: missing lifetime specifiers
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:33:44
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new());
|
2022-06-05 11:33:09 -05:00
|
|
|
| ^ ^ expected 2 lifetime parameters
|
|
|
|
| |
|
|
|
|
| expected named lifetime parameter
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
|
2020-04-17 12:46:22 -05:00
|
|
|
help: consider using the `'static` lifetime
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
2022-06-05 11:33:09 -05:00
|
|
|
LL | static d: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++ +++++++++++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2022-06-05 11:33:09 -05:00
|
|
|
error[E0106]: missing lifetime specifiers
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:33:44
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
2021-12-20 12:24:40 -06:00
|
|
|
LL | / thread_local! {
|
|
|
|
LL | | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new());
|
2022-06-05 11:33:09 -05:00
|
|
|
| | ^ ^ expected 2 lifetime parameters
|
|
|
|
| | |
|
|
|
|
| | expected named lifetime parameter
|
2021-12-20 12:24:40 -06:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
| |_-
|
|
|
|
|
|
|
|
|
= 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
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2022-06-05 11:33:09 -05:00
|
|
|
error[E0106]: missing lifetime specifier
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:47:44
|
|
|
|
|
|
|
|
|
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
|
|
|
|
help: consider using the `'static` lifetime
|
|
|
|
|
|
|
|
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++
|
|
|
|
|
|
|
|
error[E0106]: missing lifetime specifier
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:47:44
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
2021-12-20 12:24:40 -06:00
|
|
|
LL | / thread_local! {
|
2022-06-05 11:33:09 -05:00
|
|
|
LL | | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| | ^ expected named lifetime parameter
|
2021-12-20 12:24:40 -06:00
|
|
|
LL | |
|
|
|
|
LL | |
|
2022-06-05 11:33:09 -05:00
|
|
|
... |
|
2021-12-20 12:24:40 -06:00
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
| |_-
|
|
|
|
|
|
2022-06-05 11:33:09 -05:00
|
|
|
= 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
|
2021-12-20 12:24:40 -06:00
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:39:44
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
2021-12-20 12:24:40 -06: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-16 23:33:42 -05:00
|
|
|
|
|
2021-12-20 12:24:40 -06:00
|
|
|
note: union defined here, with 2 lifetime parameters: `'t`, `'k`
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:11:11
|
|
|
|
|
|
|
|
|
LL | pub union Qux<'t, 'k, I> {
|
|
|
|
| ^^^ -- --
|
|
|
|
help: add missing lifetime argument
|
|
|
|
|
|
2022-06-05 02:59:26 -05:00
|
|
|
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:39:44
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
|
2021-01-02 12:45:11 -06:00
|
|
|
| ^^^ ------- supplied 1 lifetime argument
|
|
|
|
| |
|
|
|
|
| expected 2 lifetime arguments
|
|
|
|
|
|
|
|
|
note: union defined here, with 2 lifetime parameters: `'t`, `'k`
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:11:11
|
|
|
|
|
|
|
|
|
LL | pub union Qux<'t, 'k, I> {
|
|
|
|
| ^^^ -- --
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-01-02 12:45:11 -06:00
|
|
|
help: add missing lifetime argument
|
|
|
|
|
|
2022-11-06 03:45:34 -06:00
|
|
|
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:39:44
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
|
2021-01-02 12:45:11 -06:00
|
|
|
| ^^^ ------- supplied 1 lifetime argument
|
|
|
|
| |
|
|
|
|
| expected 2 lifetime arguments
|
|
|
|
|
|
|
|
|
note: union defined here, with 2 lifetime parameters: `'t`, `'k`
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:11:11
|
|
|
|
|
|
|
|
|
LL | pub union Qux<'t, 'k, I> {
|
|
|
|
| ^^^ -- --
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-01-02 12:45:11 -06:00
|
|
|
help: add missing lifetime argument
|
|
|
|
|
|
2022-11-06 03:45:34 -06:00
|
|
|
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:39:44
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
|
2021-01-02 12:45:11 -06:00
|
|
|
| ^^^ ------- supplied 1 lifetime argument
|
|
|
|
| |
|
|
|
|
| expected 2 lifetime arguments
|
|
|
|
|
|
|
|
|
note: union defined here, with 2 lifetime parameters: `'t`, `'k`
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:11:11
|
|
|
|
|
|
|
|
|
LL | pub union Qux<'t, 'k, I> {
|
|
|
|
| ^^^ -- --
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-01-02 12:45:11 -06:00
|
|
|
help: add missing lifetime argument
|
|
|
|
|
|
2022-11-06 03:45:34 -06:00
|
|
|
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:39:44
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
|
2021-01-02 12:45:11 -06:00
|
|
|
| ^^^ ------- supplied 1 lifetime argument
|
|
|
|
| |
|
|
|
|
| expected 2 lifetime arguments
|
|
|
|
|
|
|
|
|
note: union defined here, with 2 lifetime parameters: `'t`, `'k`
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:11:11
|
|
|
|
|
|
|
|
|
LL | pub union Qux<'t, 'k, I> {
|
|
|
|
| ^^^ -- --
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-01-02 12:45:11 -06:00
|
|
|
help: add missing lifetime argument
|
|
|
|
|
|
2022-06-05 02:59:26 -05:00
|
|
|
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:47:45
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
|
2021-01-02 12:45:11 -06:00
|
|
|
| ^^^ ------- supplied 1 lifetime argument
|
|
|
|
| |
|
|
|
|
| expected 2 lifetime arguments
|
|
|
|
|
|
|
|
|
note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:15:7
|
|
|
|
|
|
|
|
|
LL | trait Tar<'t, 'k, I> {}
|
|
|
|
| ^^^ -- --
|
|
|
|
help: add missing lifetime argument
|
|
|
|
|
|
2022-06-05 02:59:26 -05:00
|
|
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:47:45
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
|
2021-01-02 12:45:11 -06:00
|
|
|
| ^^^ ------- supplied 1 lifetime argument
|
|
|
|
| |
|
|
|
|
| expected 2 lifetime arguments
|
|
|
|
|
|
|
|
|
note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:15:7
|
|
|
|
|
|
|
|
|
LL | trait Tar<'t, 'k, I> {}
|
|
|
|
| ^^^ -- --
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-01-02 12:45:11 -06:00
|
|
|
help: add missing lifetime argument
|
|
|
|
|
|
2022-11-06 03:45:34 -06:00
|
|
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:47:45
|
2021-02-27 20:31:56 -06:00
|
|
|
|
|
|
|
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
|
2021-12-20 12:24:40 -06:00
|
|
|
| ^^^ ------- supplied 1 lifetime argument
|
|
|
|
| |
|
|
|
|
| expected 2 lifetime arguments
|
2021-02-27 20:31:56 -06:00
|
|
|
|
|
2021-12-20 12:24:40 -06:00
|
|
|
note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:15:7
|
2021-02-27 20:31:56 -06:00
|
|
|
|
|
2021-12-20 12:24:40 -06:00
|
|
|
LL | trait Tar<'t, 'k, I> {}
|
|
|
|
| ^^^ -- --
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-12-20 12:24:40 -06:00
|
|
|
help: add missing lifetime argument
|
|
|
|
|
|
2022-11-06 03:45:34 -06:00
|
|
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++++
|
2021-02-27 20:31:56 -06:00
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:47:45
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
|
2021-01-02 12:45:11 -06:00
|
|
|
| ^^^ ------- supplied 1 lifetime argument
|
|
|
|
| |
|
|
|
|
| expected 2 lifetime arguments
|
|
|
|
|
|
|
|
|
note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:15:7
|
|
|
|
|
|
|
|
|
LL | trait Tar<'t, 'k, I> {}
|
|
|
|
| ^^^ -- --
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-01-02 12:45:11 -06:00
|
|
|
help: add missing lifetime argument
|
|
|
|
|
|
2022-11-06 03:45:34 -06:00
|
|
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2022-06-05 11:33:09 -05:00
|
|
|
--> $DIR/missing-lifetime-specifier.rs:47:45
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
|
2021-01-02 12:45:11 -06:00
|
|
|
| ^^^ ------- supplied 1 lifetime argument
|
|
|
|
| |
|
|
|
|
| expected 2 lifetime arguments
|
|
|
|
|
|
|
|
|
note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
|
|
|
|
--> $DIR/missing-lifetime-specifier.rs:15:7
|
|
|
|
|
|
|
|
|
LL | trait Tar<'t, 'k, I> {}
|
|
|
|
| ^^^ -- --
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-01-02 12:45:11 -06:00
|
|
|
help: add missing lifetime argument
|
|
|
|
|
|
2022-06-05 02:59:26 -05:00
|
|
|
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
|
|
|
|
| +++++++++
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2022-06-05 11:33:09 -05:00
|
|
|
error: aborting due to 20 previous errors
|
2020-04-16 23:33:42 -05:00
|
|
|
|
2020-08-13 20:30:00 -05:00
|
|
|
Some errors have detailed explanations: E0106, E0107.
|
2020-04-16 23:33:42 -05:00
|
|
|
For more information about an error, try `rustc --explain E0106`.
|