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
#fmt["%+u", 10u];
}