初級 › E0425: cannot find value in this scope の原因と直し方 › パターン1
E0425: cannot find value in this scope の原因と直し方
宣言していない変数名を参照すると、コンパイル時にE0425エラーになります。
1 fn main() { 2 let price = 1000; 3 println!("{}", ______); ^ 4 }
error[E0425]: cannot find value `pricee` in this scope
空欄を埋めて実行を通す
priceとpriceeは1文字違うだけでも別の名前として扱われ、コンパイラはpriceeを見つけられません。
次の問題