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 14:19:39 +02:00
// Can't use a sign on unsigned conversions
fmt!{"%+u", 10u};
}