Code Fix

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

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

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

 1  fn main() {
 2      let total = 250;
 3      println!("{}", ______);
                          ^
 4  }
error[E0425]: cannot find value `totall` in this scope

空欄を埋めて実行を通す

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

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

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

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

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