初級 › E0425: cannot find value in this scope の原因と直し方 › パターン4
E0425: cannot find value in this scope の原因と直し方
宣言していない変数名を参照すると、コンパイル時にE0425エラーになります。
1 fn main() { 2 let username = "kenji"; 3 println!("{}", _________); ^ 4 }
error[E0425]: cannot find value `usrname` in this scope
空欄を埋めて実行を通す
コンパイラは似た名前を提案してくれますが、実行はしてくれません。正しい名前を書く必要があります。
次の問題