rust/src/test/compile-fail/extfmt-unsigned-plus.rs
2012-08-23 11:14:14 -07:00

7 lines
139 B
Rust

// error-pattern:only valid in signed #fmt conversion
fn main() {
// Can't use a sign on unsigned conversions
fmt!("%+u", 10u);
}