]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-56835.stderr
Rollup merge of #56881 - Amanieu:ordering_eq, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-56835.stderr
1 error: the `Self` constructor can only be used with tuple or unit structs
2   --> $DIR/issue-56835.rs:5:12
3    |
4 LL |     fn bar(Self(foo): Self) {}
5    |            ^^^^^^^^^ did you mean `Self { /* fields */ }`?
6
7 error[E0164]: expected tuple struct/variant, found self constructor `Self`
8   --> $DIR/issue-56835.rs:5:12
9    |
10 LL |     fn bar(Self(foo): Self) {}
11    |            ^^^^^^^^^ not a tuple variant or struct
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0164`.