]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/privacy-ns2.stderr
update ui tests
[rust.git] / src / test / ui / privacy / privacy-ns2.stderr
1 error[E0423]: expected function, found trait `Bar`
2   --> $DIR/privacy-ns2.rs:20:5
3    |
4 LL |     Bar();
5    |     ^^^ not a function
6 help: possible better candidates are found in other modules, you can import them into scope
7    |
8 LL | use foo1::Bar;
9    |
10 LL | use foo2::Bar;
11    |
12 LL | use foo3::Bar;
13    |
14
15 error[E0423]: expected function, found trait `Bar`
16   --> $DIR/privacy-ns2.rs:26:5
17    |
18 LL |     Bar();
19    |     ^^^
20 help: a unit struct with a similar name exists
21    |
22 LL |     Baz();
23    |     ^^^
24 help: possible better candidates are found in other modules, you can import them into scope
25    |
26 LL | use foo1::Bar;
27    |
28 LL | use foo2::Bar;
29    |
30 LL | use foo3::Bar;
31    |
32
33 error[E0573]: expected type, found function `Bar`
34   --> $DIR/privacy-ns2.rs:41:18
35    |
36 LL |     let _x : Box<Bar>;
37    |                  ^^^ not a type
38 help: possible better candidates are found in other modules, you can import them into scope
39    |
40 LL | use foo1::Bar;
41    |
42 LL | use foo2::Bar;
43    |
44 LL | use foo3::Bar;
45    |
46
47 error[E0573]: expected type, found function `Bar`
48   --> $DIR/privacy-ns2.rs:47:17
49    |
50 LL |     let _x: Box<Bar>;
51    |                 ^^^
52 help: a struct with a similar name exists
53    |
54 LL |     let _x: Box<Baz>;
55    |                 ^^^
56 help: possible better candidates are found in other modules, you can import them into scope
57    |
58 LL | use foo1::Bar;
59    |
60 LL | use foo2::Bar;
61    |
62 LL | use foo3::Bar;
63    |
64
65 error[E0603]: trait `Bar` is private
66   --> $DIR/privacy-ns2.rs:60:15
67    |
68 LL |     use foo3::Bar;
69    |               ^^^
70
71 error[E0603]: trait `Bar` is private
72   --> $DIR/privacy-ns2.rs:64:15
73    |
74 LL |     use foo3::Bar;
75    |               ^^^
76
77 error[E0603]: trait `Bar` is private
78   --> $DIR/privacy-ns2.rs:71:16
79    |
80 LL |     use foo3::{Bar,Baz};
81    |                ^^^
82
83 error: aborting due to 7 previous errors
84
85 Some errors have detailed explanations: E0423, E0573, E0603.
86 For more information about an error, try `rustc --explain E0423`.