fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
932 B30 linesraw
1error: the `Self` constructor can only be used with tuple or unit structs
2  --> $DIR/issue-56199.rs:6:17
3   |
4LL |         let _ = Self;
5   |                 ^^^^
6   |
7   = help: did you mean to use one of the enum's variants?
8
9error: the `Self` constructor can only be used with tuple or unit structs
10  --> $DIR/issue-56199.rs:8:17
11   |
12LL |         let _ = Self();
13   |                 ^^^^
14   |
15   = help: did you mean to use one of the enum's variants?
16
17error: the `Self` constructor can only be used with tuple or unit structs
18  --> $DIR/issue-56199.rs:15:17
19   |
20LL |         let _ = Self;
21   |                 ^^^^ help: use curly brackets: `Self { /* fields */ }`
22
23error: the `Self` constructor can only be used with tuple or unit structs
24  --> $DIR/issue-56199.rs:17:17
25   |
26LL |         let _ = Self();
27   |                 ^^^^ help: use curly brackets: `Self { /* fields */ }`
28
29error: aborting due to 4 previous errors
30