4fc0452ace
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
8 lines
109 B
Rust
8 lines
109 B
Rust
enum E {}
|
|
|
|
fn f(e: E) {
|
|
println!("{}", (e as int).to_str()); //~ ERROR non-scalar cast
|
|
}
|
|
|
|
fn main() {}
|