]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/issues/issue-88276-unary-plus.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / parser / issues / issue-88276-unary-plus.rs
CommitLineData
c295e0f8
XL
1// run-rustfix
2#[allow(unused_parens)]
3fn main() {
4 let _ = +1; //~ ERROR leading `+` is not supported
5 let _ = (1.0 + +2.0) * +3.0; //~ ERROR leading `+` is not supported
6 //~| ERROR leading `+` is not supported
7 let _ = [+3, 4+6]; //~ ERROR leading `+` is not supported
8}