]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/privacy-ns2.stderr
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / privacy / privacy-ns2.stderr
1 error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
2   --> $DIR/privacy-ns2.rs:20:5
3    |
4 LL |     Bar();
5    |     ^^^ not a function, tuple struct or tuple variant
6    |
7 help: consider importing this function instead
8    |
9 LL | use foo2::Bar;
10    |
11
12 error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
13   --> $DIR/privacy-ns2.rs:26:5
14    |
15 LL |     pub struct Baz;
16    |     --------------- similarly named unit struct `Baz` defined here
17 ...
18 LL |     Bar();
19    |     ^^^
20    |
21 help: a unit struct with a similar name exists
22    |
23 LL |     Baz();
24    |     ^^^
25 help: consider importing this function instead
26    |
27 LL | use foo2::Bar;
28    |
29
30 error[E0573]: expected type, found function `Bar`
31   --> $DIR/privacy-ns2.rs:42:14
32    |
33 LL |     let _x : Bar();
34    |              ^^^^^ not a type
35    |
36 help: use `=` if you meant to assign
37    |
38 LL |     let _x = Bar();
39    |            ^
40 help: consider importing this trait instead
41    |
42 LL | use foo1::Bar;
43    |
44
45 error[E0603]: trait `Bar` is private
46   --> $DIR/privacy-ns2.rs:61:15
47    |
48 LL |     use foo3::Bar;
49    |               ^^^ private trait
50    |
51 note: the trait `Bar` is defined here
52   --> $DIR/privacy-ns2.rs:53:5
53    |
54 LL |     trait Bar {
55    |     ^^^^^^^^^
56
57 error[E0603]: trait `Bar` is private
58   --> $DIR/privacy-ns2.rs:65:15
59    |
60 LL |     use foo3::Bar;
61    |               ^^^ private trait
62    |
63 note: the trait `Bar` is defined here
64   --> $DIR/privacy-ns2.rs:53:5
65    |
66 LL |     trait Bar {
67    |     ^^^^^^^^^
68
69 error[E0603]: trait `Bar` is private
70   --> $DIR/privacy-ns2.rs:72:16
71    |
72 LL |     use foo3::{Bar,Baz};
73    |                ^^^ private trait
74    |
75 note: the trait `Bar` is defined here
76   --> $DIR/privacy-ns2.rs:53:5
77    |
78 LL |     trait Bar {
79    |     ^^^^^^^^^
80
81 error[E0747]: constant provided when a type was expected
82   --> $DIR/privacy-ns2.rs:41:18
83    |
84 LL |     let _x : Box<Bar>;
85    |                  ^^^
86
87 error[E0747]: constant provided when a type was expected
88   --> $DIR/privacy-ns2.rs:48:17
89    |
90 LL |     let _x: Box<Bar>;
91    |                 ^^^
92
93 error: aborting due to 8 previous errors
94
95 Some errors have detailed explanations: E0423, E0573, E0603, E0747.
96 For more information about an error, try `rustc --explain E0423`.