This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
6 lines
139 B
Rust
6 lines
139 B
Rust
// error-pattern:only valid in signed #fmt conversion
|
|
|
|
fn main() {
|
|
// Can't use a sign on unsigned conversions
|
|
#fmt["%+u", 10u];
|
|
}
|