Code Fix

初級E0425: cannot find value in this scope の原因と直し方 › パターン2

E0425: cannot find value in this scope の原因と直し方

宣言していない変数名を参照すると、コンパイル時にE0425エラーになります。

 1  fn main() {
 2      let score = 88;
 3      println!("{}", _____);
                         ^
 4  }
error[E0425]: cannot find value `scroe` in this scope

空欄を埋めて実行を通す

広告
広告スロット(未設定)

E0425: cannot find value in this scope の原因と直し方

変数名のタイプミスが典型的な原因です。

このエラーの解説と類題をまとめて見る →

広告
広告スロット(未設定)