]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/enums-are-namespaced-xc.stderr
Improve placement of `use` suggestions
[rust.git] / src / test / ui / resolve / enums-are-namespaced-xc.stderr
1 error[E0425]: cannot find value `A` in module `namespaced_enums`
2   --> $DIR/enums-are-namespaced-xc.rs:15:31
3    |
4 15 |     let _ = namespaced_enums::A;
5    |                               ^ not found in `namespaced_enums`
6    |
7 help: possible candidate is found in another module, you can import it into scope
8    |
9 14 | use namespaced_enums::Foo::A;
10    |
11
12 error[E0425]: cannot find function `B` in module `namespaced_enums`
13   --> $DIR/enums-are-namespaced-xc.rs:18:31
14    |
15 18 |     let _ = namespaced_enums::B(10);
16    |                               ^ not found in `namespaced_enums`
17    |
18 help: possible candidate is found in another module, you can import it into scope
19    |
20 14 | use namespaced_enums::Foo::B;
21    |
22
23 error[E0422]: cannot find struct, variant or union type `C` in module `namespaced_enums`
24   --> $DIR/enums-are-namespaced-xc.rs:21:31
25    |
26 21 |     let _ = namespaced_enums::C { a: 10 };
27    |                               ^ not found in `namespaced_enums`
28    |
29 help: possible candidate is found in another module, you can import it into scope
30    |
31 14 | use namespaced_enums::Foo::C;
32    |
33
34 error: aborting due to 3 previous errors
35