2020-01-10 14:13:05 +00:00
|
|
|
note: external requirements
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/projection-no-regions-closure.rs:25:23
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | with_signature(x, |mut y| Box::new(y.next()))
|
2022-08-31 20:17:32 +02:00
|
|
|
| ^^^^^^^
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2020-08-31 18:11:44 +01:00
|
|
|
= note: defining type: no_region::<'_#1r, T>::{closure#0} with closure substs [
|
2017-12-05 13:15:23 -05:00
|
|
|
i32,
|
2022-02-16 00:00:00 +00:00
|
|
|
extern "rust-call" fn((std::boxed::Box<T>,)) -> std::boxed::Box<(dyn Anything + '_#2r)>,
|
2020-03-13 03:23:38 +02:00
|
|
|
(),
|
2017-12-05 13:15:23 -05:00
|
|
|
]
|
2018-09-06 22:57:05 -04:00
|
|
|
= note: number of external vids: 3
|
2017-12-05 13:15:23 -05:00
|
|
|
= note: where <T as std::iter::Iterator>::Item: '_#2r
|
|
|
|
|
2020-01-10 14:13:05 +00:00
|
|
|
note: no external requirements
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/projection-no-regions-closure.rs:21:1
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | / fn no_region<'a, T>(x: Box<T>) -> Box<dyn Anything + 'a>
|
|
|
|
LL | | where
|
|
|
|
LL | | T: Iterator,
|
2022-08-31 20:17:32 +02:00
|
|
|
| |________________^
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2019-11-30 18:47:21 +02:00
|
|
|
= note: defining type: no_region::<'_#1r, T>
|
2017-12-05 13:15:23 -05:00
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error[E0309]: the associated type `<T as Iterator>::Item` may not live long enough
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/projection-no-regions-closure.rs:25:23
|
2018-07-31 14:35:43 +02:00
|
|
|
|
|
|
|
|
LL | with_signature(x, |mut y| Box::new(y.next()))
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= help: consider adding an explicit lifetime bound `<T as Iterator>::Item: 'a`...
|
2022-04-24 09:36:23 +02:00
|
|
|
= note: ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
|
2018-07-31 14:35:43 +02:00
|
|
|
|
2020-01-10 14:13:05 +00:00
|
|
|
note: external requirements
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/projection-no-regions-closure.rs:34:23
|
2018-02-22 18:46:02 -05:00
|
|
|
|
|
2018-02-25 02:59:34 +03:00
|
|
|
LL | with_signature(x, |mut y| Box::new(y.next()))
|
2022-08-31 20:17:32 +02:00
|
|
|
| ^^^^^^^
|
2018-02-22 18:46:02 -05:00
|
|
|
|
|
2020-08-31 18:11:44 +01:00
|
|
|
= note: defining type: correct_region::<'_#1r, T>::{closure#0} with closure substs [
|
2018-02-22 18:46:02 -05:00
|
|
|
i32,
|
2022-02-16 00:00:00 +00:00
|
|
|
extern "rust-call" fn((std::boxed::Box<T>,)) -> std::boxed::Box<(dyn Anything + '_#2r)>,
|
2020-03-13 03:23:38 +02:00
|
|
|
(),
|
2018-02-22 18:46:02 -05:00
|
|
|
]
|
2018-09-06 22:57:05 -04:00
|
|
|
= note: number of external vids: 3
|
2018-02-22 18:46:02 -05:00
|
|
|
= note: where <T as std::iter::Iterator>::Item: '_#2r
|
|
|
|
|
2020-01-10 14:13:05 +00:00
|
|
|
note: no external requirements
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/projection-no-regions-closure.rs:30:1
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | / fn correct_region<'a, T>(x: Box<T>) -> Box<dyn Anything + 'a>
|
|
|
|
LL | | where
|
|
|
|
LL | | T: 'a + Iterator,
|
2022-08-31 20:17:32 +02:00
|
|
|
| |_____________________^
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2019-11-30 18:47:21 +02:00
|
|
|
= note: defining type: correct_region::<'_#1r, T>
|
2017-12-05 13:15:23 -05:00
|
|
|
|
2020-01-10 14:13:05 +00:00
|
|
|
note: external requirements
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/projection-no-regions-closure.rs:42:23
|
2018-02-22 18:46:02 -05:00
|
|
|
|
|
2018-02-25 02:59:34 +03:00
|
|
|
LL | with_signature(x, |mut y| Box::new(y.next()))
|
2022-08-31 20:17:32 +02:00
|
|
|
| ^^^^^^^
|
2018-02-22 18:46:02 -05:00
|
|
|
|
|
2020-08-31 18:11:44 +01:00
|
|
|
= note: defining type: wrong_region::<'_#1r, '_#2r, T>::{closure#0} with closure substs [
|
2018-02-22 18:46:02 -05:00
|
|
|
i32,
|
2022-02-16 00:00:00 +00:00
|
|
|
extern "rust-call" fn((std::boxed::Box<T>,)) -> std::boxed::Box<(dyn Anything + '_#3r)>,
|
2020-03-13 03:23:38 +02:00
|
|
|
(),
|
2018-02-22 18:46:02 -05:00
|
|
|
]
|
2018-09-06 22:57:05 -04:00
|
|
|
= note: number of external vids: 4
|
2018-02-22 18:46:02 -05:00
|
|
|
= note: where <T as std::iter::Iterator>::Item: '_#3r
|
|
|
|
|
2020-01-10 14:13:05 +00:00
|
|
|
note: no external requirements
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/projection-no-regions-closure.rs:38:1
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | / fn wrong_region<'a, 'b, T>(x: Box<T>) -> Box<dyn Anything + 'a>
|
|
|
|
LL | | where
|
|
|
|
LL | | T: 'b + Iterator,
|
2022-08-31 20:17:32 +02:00
|
|
|
| |_____________________^
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2019-11-30 18:47:21 +02:00
|
|
|
= note: defining type: wrong_region::<'_#1r, '_#2r, T>
|
2017-12-05 13:15:23 -05:00
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error[E0309]: the associated type `<T as Iterator>::Item` may not live long enough
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/projection-no-regions-closure.rs:42:23
|
2018-07-31 14:35:43 +02:00
|
|
|
|
|
|
|
|
LL | with_signature(x, |mut y| Box::new(y.next()))
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= help: consider adding an explicit lifetime bound `<T as Iterator>::Item: 'a`...
|
2022-04-24 09:36:23 +02:00
|
|
|
= note: ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
|
2018-07-31 14:35:43 +02:00
|
|
|
|
2020-01-10 14:13:05 +00:00
|
|
|
note: external requirements
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/projection-no-regions-closure.rs:52:23
|
2018-02-22 18:46:02 -05:00
|
|
|
|
|
2018-02-25 02:59:34 +03:00
|
|
|
LL | with_signature(x, |mut y| Box::new(y.next()))
|
2022-08-31 20:17:32 +02:00
|
|
|
| ^^^^^^^
|
2018-02-22 18:46:02 -05:00
|
|
|
|
|
2020-08-31 18:11:44 +01:00
|
|
|
= note: defining type: outlives_region::<'_#1r, '_#2r, T>::{closure#0} with closure substs [
|
2018-02-22 18:46:02 -05:00
|
|
|
i32,
|
2022-02-16 00:00:00 +00:00
|
|
|
extern "rust-call" fn((std::boxed::Box<T>,)) -> std::boxed::Box<(dyn Anything + '_#3r)>,
|
2020-03-13 03:23:38 +02:00
|
|
|
(),
|
2018-02-22 18:46:02 -05:00
|
|
|
]
|
2018-09-06 22:57:05 -04:00
|
|
|
= note: number of external vids: 4
|
2018-02-22 18:46:02 -05:00
|
|
|
= note: where <T as std::iter::Iterator>::Item: '_#3r
|
|
|
|
|
2020-01-10 14:13:05 +00:00
|
|
|
note: no external requirements
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/projection-no-regions-closure.rs:47:1
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | / fn outlives_region<'a, 'b, T>(x: Box<T>) -> Box<dyn Anything + 'a>
|
|
|
|
LL | | where
|
|
|
|
LL | | T: 'b + Iterator,
|
|
|
|
LL | | 'b: 'a,
|
2022-08-31 20:17:32 +02:00
|
|
|
| |___________^
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
2019-11-30 18:47:21 +02:00
|
|
|
= note: defining type: outlives_region::<'_#1r, '_#2r, T>
|
2017-12-05 13:15:23 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0309`.
|