fork/rust

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

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

master
1.5 KiB52 linesraw
1error[E0425]: cannot find value `A` in crate `namespaced_enums`
2  --> $DIR/enums-are-namespaced-xc.rs:5:31
3   |
4LL |     let _ = namespaced_enums::A;
5   |                               ^ not found in `namespaced_enums`
6   |
7help: consider importing this unit variant
8   |
9LL + use namespaced_enums::Foo::A;
10   |
11help: if you import `A`, refer to it directly
12   |
13LL -     let _ = namespaced_enums::A;
14LL +     let _ = A;
15   |
16
17error[E0425]: cannot find function, tuple struct or tuple variant `B` in crate `namespaced_enums`
18  --> $DIR/enums-are-namespaced-xc.rs:7:31
19   |
20LL |     let _ = namespaced_enums::B(10);
21   |                               ^ not found in `namespaced_enums`
22   |
23help: consider importing this tuple variant
24   |
25LL + use namespaced_enums::Foo::B;
26   |
27help: if you import `B`, refer to it directly
28   |
29LL -     let _ = namespaced_enums::B(10);
30LL +     let _ = B(10);
31   |
32
33error[E0422]: cannot find struct, variant or union type `C` in crate `namespaced_enums`
34  --> $DIR/enums-are-namespaced-xc.rs:9:31
35   |
36LL |     let _ = namespaced_enums::C { a: 10 };
37   |                               ^ not found in `namespaced_enums`
38   |
39help: consider importing this variant
40   |
41LL + use namespaced_enums::Foo::C;
42   |
43help: if you import `C`, refer to it directly
44   |
45LL -     let _ = namespaced_enums::C { a: 10 };
46LL +     let _ = C { a: 10 };
47   |
48
49error: aborting due to 3 previous errors
50
51Some errors have detailed explanations: E0422, E0425.
52For more information about an error, try `rustc --explain E0422`.