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