]> git.proxmox.com Git - rustc.git/blob - src/test/ui/privacy/privacy-ns2.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.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:43: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:63:15
47 |
48 LL | use foo3::Bar;
49 | ^^^ private trait
50 |
51 note: the trait `Bar` is defined here
52 --> $DIR/privacy-ns2.rs:55:5
53 |
54 LL | trait Bar {
55 | ^^^^^^^^^
56
57 error[E0603]: trait `Bar` is private
58 --> $DIR/privacy-ns2.rs:67:15
59 |
60 LL | use foo3::Bar;
61 | ^^^ private trait
62 |
63 note: the trait `Bar` is defined here
64 --> $DIR/privacy-ns2.rs:55:5
65 |
66 LL | trait Bar {
67 | ^^^^^^^^^
68
69 error[E0603]: trait `Bar` is private
70 --> $DIR/privacy-ns2.rs:74: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:55:5
77 |
78 LL | trait Bar {
79 | ^^^^^^^^^
80
81 error[E0107]: wrong number of const arguments: expected 0, found 1
82 --> $DIR/privacy-ns2.rs:41:18
83 |
84 LL | let _x : Box<Bar>;
85 | ^^^ unexpected const argument
86
87 error[E0107]: wrong number of type arguments: expected 1, found 0
88 --> $DIR/privacy-ns2.rs:41:14
89 |
90 LL | let _x : Box<Bar>;
91 | ^^^^^^^^ expected 1 type argument
92
93 error[E0107]: wrong number of const arguments: expected 0, found 1
94 --> $DIR/privacy-ns2.rs:49:17
95 |
96 LL | let _x: Box<Bar>;
97 | ^^^ unexpected const argument
98
99 error[E0107]: wrong number of type arguments: expected 1, found 0
100 --> $DIR/privacy-ns2.rs:49:13
101 |
102 LL | let _x: Box<Bar>;
103 | ^^^^^^^^ expected 1 type argument
104
105 error: aborting due to 10 previous errors
106
107 Some errors have detailed explanations: E0107, E0423, E0573, E0603.
108 For more information about an error, try `rustc --explain E0107`.