rust/src/test/compile-fail/extfmt-unsigned-plus.rs
2011-06-04 17:10:04 -04:00

8 lines
151 B
Rust

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