fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.2 KiB40 linesraw
1error[E0412]: cannot find type `Set` in this scope
2  --> $DIR/issue-56028-there-is-an-enum-variant.rs:9:15
3   |
4LL | fn setup() -> Set { Set }
5   |               ^^^ not found in this scope
6   |
7help: there is an enum variant `AffixHeart::Set` and 7 others; try using the variant's enum
8   |
9LL | fn setup() -> AffixHeart { Set }
10   |               ^^^^^^^^^^
11LL | fn setup() -> CauseToBe { Set }
12   |               ^^^^^^^^^
13LL | fn setup() -> Determine { Set }
14   |               ^^^^^^^^^
15LL | fn setup() -> PutDown { Set }
16   |               ^^^^^^^
17     and 3 other candidates
18
19error[E0425]: cannot find value `Set` in this scope
20  --> $DIR/issue-56028-there-is-an-enum-variant.rs:9:21
21   |
22LL | fn setup() -> Set { Set }
23   |                     ^^^ not found in this scope
24   |
25help: possible candidates are found in other modules, you can import them into scope
26   |
27LL | use AffixHeart::Set;
28   |
29LL | use CauseToBe::Set;
30   |
31LL | use Determine::Set;
32   |
33LL | use PutDown::Set;
34   |
35     and 3 other candidates
36
37error: aborting due to 2 previous errors
38
39Some errors have detailed explanations: E0412, E0425.
40For more information about an error, try `rustc --explain E0412`.