PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/jruderman/rust
Rust | 6 lines | 3 code | 1 blank | 2 comment | 0 complexity | 7a89dfedfbec6951115c0764d4458c6a MD5 | raw file
1// error-pattern:only valid in signed #fmt conversion
2
3fn main() {
4    // Can't use a sign on unsigned conversions
5    fmt!{"%+u", 10u};
6}