]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/privacy-ns1.stderr
714f28941f11ff49f188e2bd954079a09fed1a03
[rust.git] / src / test / ui / privacy / privacy-ns1.stderr
1 error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
2   --> $DIR/privacy-ns1.rs:20:5
3    |
4 LL |     pub struct Baz;
5    |     --------------- similarly named unit struct `Baz` defined here
6 ...
7 LL |     Bar();
8    |     ^^^
9    |
10 help: a unit struct with a similar name exists
11    |
12 LL |     Baz();
13    |     ^^^
14 help: consider importing this function instead
15    |
16 LL | use foo2::Bar;
17    |
18
19 error[E0425]: cannot find function, tuple struct or tuple variant `Bar` in this scope
20   --> $DIR/privacy-ns1.rs:51:5
21    |
22 LL |     pub struct Baz;
23    |     --------------- similarly named unit struct `Baz` defined here
24 ...
25 LL |     Bar();
26    |     ^^^
27    |
28 help: a unit struct with a similar name exists
29    |
30 LL |     Baz();
31    |     ^^^
32 help: consider importing this function
33    |
34 LL | use foo2::Bar;
35    |
36
37 error[E0412]: cannot find type `Bar` in this scope
38   --> $DIR/privacy-ns1.rs:52:17
39    |
40 LL |     pub struct Baz;
41    |     --------------- similarly named struct `Baz` defined here
42 ...
43 LL |     let _x: Box<Bar>;
44    |                 ^^^
45    |
46 help: a struct with a similar name exists
47    |
48 LL |     let _x: Box<Baz>;
49    |                 ^^^
50 help: consider importing this trait
51    |
52 LL | use foo1::Bar;
53    |
54
55 error[E0747]: constant provided when a type was expected
56   --> $DIR/privacy-ns1.rs:35:17
57    |
58 LL |     let _x: Box<Bar>;
59    |                 ^^^
60
61 error: aborting due to 4 previous errors
62
63 Some errors have detailed explanations: E0412, E0423, E0425, E0747.
64 For more information about an error, try `rustc --explain E0412`.