A number in a non-decimal base has no digits.
Erroneous code example:
#![allow(unused)]
fn main() {
let s: i32 = 0b; // error!
} To fix this error, add the missing digits:
#![allow(unused)]
fn main() {
let s: i32 = 0b1; // ok!
}
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0768.html