You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes
2
+
--> $DIR/placeholders-dont-outlive-static.rs:6:12
3
+
|
4
+
LL | #![feature(non_lifetime_binders)]
5
+
| ^^^^^^^^^^^^^^^^^^^^
6
+
|
7
+
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
8
+
= note: `#[warn(incomplete_features)]` on by default
9
+
10
+
error[E0310]: the placeholder type `!1_"T"` may not live long enough
11
+
--> $DIR/placeholders-dont-outlive-static.rs:13:5
12
+
|
13
+
LL | foo();
14
+
| ^^^^^
15
+
| |
16
+
| the placeholder type `!1_"T"` must be valid for the static lifetime...
17
+
| ...so that the type `T` will meet its required lifetime bounds
18
+
|
19
+
help: consider adding an explicit lifetime bound
20
+
|
21
+
LL | fn bad() where !1_"T": 'static {
22
+
| +++++++++++++++++++++
23
+
24
+
error: aborting due to previous error; 1 warning emitted
25
+
26
+
For more information about this error, try `rustc --explain E0310`.
warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes
2
+
--> $DIR/placeholders-dont-outlive-static.rs:6:12
3
+
|
4
+
LL | #![feature(non_lifetime_binders)]
5
+
| ^^^^^^^^^^^^^^^^^^^^
6
+
|
7
+
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
8
+
= note: `#[warn(incomplete_features)]` on by default
9
+
10
+
error[E0310]: the placeholder type `!1_"T"` may not live long enough
11
+
--> $DIR/placeholders-dont-outlive-static.rs:19:5
12
+
|
13
+
LL | foo();
14
+
| ^^^^^
15
+
| |
16
+
| the placeholder type `!1_"T"` must be valid for the static lifetime...
17
+
| ...so that the type `T` will meet its required lifetime bounds
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
8
8
= note: `#[warn(incomplete_features)]` on by default
9
9
10
-
warning: 1 warning emitted
10
+
error[E0309]: the placeholder type `!1_"F"` may not live long enough
11
+
--> $DIR/type-match-with-late-bound.rs:11:1
12
+
|
13
+
LL | async fn walk2<'a, T: 'a>(_: T)
14
+
| -- the placeholder type `!1_"F"` must be valid for the lifetime `'a` as defined here...
15
+
...
16
+
LL | {}
17
+
| ^^ ...so that the type `F` will meet its required lifetime bounds
18
+
|
19
+
help: consider adding an explicit lifetime bound
20
+
|
21
+
LL | for<F> F: 'a, !1_"F": 'a
22
+
| ~~~~~~~~~~~~
23
+
24
+
error: aborting due to previous error; 1 warning emitted
11
25
26
+
For more information about this error, try `rustc --explain E0309`.
0 commit comments