rust/src/test/compile-fail/extfmt-unsigned-plus.rs

7 lines
139 B
Rust
Raw Normal View History

// error-pattern:only valid in signed #fmt conversion
fn main() {
2011-07-27 07:19:39 -05:00
// Can't use a sign on unsigned conversions
2012-08-22 19:24:52 -05:00
fmt!("%+u", 10u);
}