W3cubDocs

/Rust

Error code E0762

A character literal wasn't ended with a quote.

Erroneous code example:

#![allow(unused)]
fn main() {
static C: char = '●; // error!
}

To fix this error, add the missing quote:

#![allow(unused)]
fn main() {
static C: char = '●'; // 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/E0762.html