You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constTEN: num::bigint::BigInt = match num::bigint::ToBigInt::to_bigint(&10){Some(x) => x,None => panic!("Could not create bigint."),};
vamsi@vamsi-laptop:~/learn/project_euler/257_to_384/problem_323$ cargo run
Compiling problem_323 v0.1.0 (file:///home/vamsi/learn/project_euler/257_to_384/problem_323)
error: internal compiler error: ../src/librustc_typeck/check/dropck.rs:284: no enclosing scope found for scope: CodeExtent(10/Misc(NodeId(22)))
--> src/main.rs:8:42
|
8 | Some(x) => x,
| ^
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'Box<Any>', ../src/librustc_errors/lib.rs:383
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: Could not compile `problem_323`.
To learn more, run the command again with --verbose.
The text was updated successfully, but these errors were encountered:
This snippet gives the following error:
The text was updated successfully, but these errors were encountered: