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
1.3 KiB37 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: possible candidate is found in another module, you can import it into scope
8   |
9LL | use namespaced_enums::Foo::A;
10   |
11
12error[E0425]: cannot find function, tuple struct or tuple variant `B` in crate `namespaced_enums`
13  --> $DIR/enums-are-namespaced-xc.rs:7:31
14   |
15LL |     let _ = namespaced_enums::B(10);
16   |                               ^ not found in `namespaced_enums`
17   |
18help: possible candidate is found in another module, you can import it into scope
19   |
20LL | use namespaced_enums::Foo::B;
21   |
22
23error[E0422]: cannot find struct, variant or union type `C` in crate `namespaced_enums`
24  --> $DIR/enums-are-namespaced-xc.rs:9:31
25   |
26LL |     let _ = namespaced_enums::C { a: 10 };
27   |                               ^ not found in `namespaced_enums`
28   |
29help: possible candidate is found in another module, you can import it into scope
30   |
31LL | use namespaced_enums::Foo::C;
32   |
33
34error: aborting due to 3 previous errors
35
36Some errors have detailed explanations: E0422, E0425.
37For more information about an error, try `rustc --explain E0422`.