fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
552 B15 linesraw
1error: the `Self` constructor can only be used with tuple or unit structs
2  --> $DIR/issue-56835.rs:4:12
3   |
4LL |     fn bar(Self(foo): Self) {}
5   |            ^^^^^^^^^ help: use curly brackets: `Self { /* fields */ }`
6
7error[E0164]: expected tuple struct or tuple variant, found self constructor `Self`
8  --> $DIR/issue-56835.rs:4:12
9   |
10LL |     fn bar(Self(foo): Self) {}
11   |            ^^^^^^^^^ not a tuple struct or tuple variant
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0164`.