How to convert char to string?
This Question pertains to a pre-release version of Rust. This younger Question is similar. I tried to print one symbol by io::println function fn main() { io::println('c'); } But I got next error: $ rustc pdst.rs pdst.rs:2:16: 2:19 error: mismatched types: expected `&str` but found `char` (expected &str but found char) pdst.rs:2 io::println('c'); ^~~ error: aborting due to previous error How to convert char to string? UPDATE Direct typecast does not work: let text:str = 'c'; let text:&str = 'c'; let text:@str = 'c'; let text:~str = 'c'; It returns: pdst.rs:7:13: 7:16 error: bare `str` is not a