トップページ > プログラム > 2015年02月06日 > f5aiPF8n

書き込み順位&時間帯一覧

18 位/142 ID中時間01234567891011121314151617181920212223Total
書き込み数0200000000000000000000002



使用した名前一覧書き込んだスレッド一覧
デフォルトの名無しさん
192
プログラミング言語 Rust

書き込みレス一覧

プログラミング言語 Rust
192 :デフォルトの名無しさん[sage]:2015/02/06(金) 01:45:16.44 ID:f5aiPF8n
うーん。変わらずエラーが出ます rustc 1.0.0-nightly (ba2f13ef0 2015-02-04 20:03:55 +0000)
本来>187はコンパイル通るものですか
プログラミング言語 Rust
193 :192[sage]:2015/02/06(金) 01:49:34.64 ID:f5aiPF8n
エラーこんな感じで
src/main.rs:3:14: 3:17 error: borrowed value does not live long enough
src/main.rs:3 let mut b = &2is;
                 ^~~
src/main.rs:2:17: 5:2 note: reference must be valid for the block suffix following statement 0 at 2:16...
src/main.rs:2 let mut a = &1is;
src/main.rs:3 let mut b = &2is;
src/main.rs:4 a = b;
src/main.rs:5 }
src/main.rs:3:17: 5:2 note: ...but borrowed value is only valid for the block suffix following statement 1 at 3:16
src/main.rs:3 let mut b = &2is;
src/main.rs:4 a = b;
src/main.rs:5 }


※このページは、『2ちゃんねる』の書き込みを基に自動生成したものです。オリジナルはリンク先の2ちゃんねるの書き込みです。
※このサイトでオリジナルの書き込みについては対応できません。
※何か問題のある場合はメールをしてください。対応します。