-warning: not reporting region error due to nll
- --> $DIR/issue-40288-2.rs:17:20
- |
-LL | slice[0] = y;
- | ^
-
-warning: not reporting region error due to nll
- --> $DIR/issue-40288-2.rs:16:20
- |
-LL | let slice: &mut [_] = &mut out;
- | ^^^^^^^^
-
-warning: not reporting region error due to nll
- --> $DIR/issue-40288-2.rs:14:19
- |
-LL | let mut out = [x];
- | ^^^
-
-warning: not reporting region error due to nll
- --> $DIR/issue-40288-2.rs:32:20
- |
-LL | dst.head = y;
- | ^
-
-warning: not reporting region error due to nll
- --> $DIR/issue-40288-2.rs:31:18
- |
-LL | let dst: &mut Struct<_, [()]> = &mut out;
- | ^^^^^^^^^^^^^^^^^^^^
-
-warning: not reporting region error due to nll
- --> $DIR/issue-40288-2.rs:29:19
- |
-LL | let mut out = Struct { head: x, _tail: [()] };
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
error[E0621]: explicit lifetime required in the type of `y`
--> $DIR/issue-40288-2.rs:17:9
|