W3cubDocs

/Rust

Error code E0754

A non-ASCII identifier was used in an invalid context.

Erroneous code examples:

mod řųśť; // error!

#[no_mangle]
fn řųśť() {} // error!

fn main() {}

Non-ASCII can be used as module names if it is inlined or if a #[path] attribute is specified. For example:

mod řųśť { // ok!
    const IS_GREAT: bool = true;
}

fn main() {}

© 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/E0754.html