質問編集履歴
1
書き漏らしの追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -57,11 +57,14 @@
|
|
57
57
|
```
|
58
58
|
|
59
59
|
このコードの `let lines = pathes.lines();`と`env_path = &cap[1]`のところで
|
60
|
+
```bash
|
61
|
+
`pathes` does not live long enough: assignment requires that `pathes` is borrowed for `'static`
|
62
|
+
```
|
60
63
|
|
61
64
|
```bash
|
62
65
|
`cap` does not live long enough: assignment requires that `cap` is borrowed for `'static`
|
63
66
|
```
|
64
67
|
|
65
|
-
のようなエラーが出ます。`cap`のライフタイムがmatch文の中で尽きているのでstaticを付けろということなのだと思うのですが、具体的にどこにstaticを付けたらいいのかわかりません。
|
68
|
+
のようなエラーが出ます。2番目に関しては`cap`のライフタイムがmatch文の中で尽きているのでstaticを付けろということなのだと思うのですが、具体的にどこにstaticを付けたらいいのかわかりません。
|
66
69
|
|
67
70
|
よろしくお願いします。
|