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