]> git.proxmox.com Git - rustc.git/blame - src/test/ui/privacy/privacy-ns2.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / privacy / privacy-ns2.stderr
CommitLineData
e74abb32 1error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
0731742a 2 --> $DIR/privacy-ns2.rs:20:5
b7449926 3 |
532ac7d7 4LL | Bar();
e74abb32
XL
5 | ^^^ not a function, tuple struct or tuple variant
6 |
f035d41b 7help: consider importing this function instead
b7449926
XL
8 |
9LL | use foo2::Bar;
10 |
b7449926 11
e74abb32 12error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
0731742a 13 --> $DIR/privacy-ns2.rs:26:5
b7449926 14 |
e74abb32
XL
15LL | pub struct Baz;
16 | --------------- similarly named unit struct `Baz` defined here
17...
532ac7d7 18LL | Bar();
0731742a 19 | ^^^
e74abb32 20 |
0731742a
XL
21help: a unit struct with a similar name exists
22 |
532ac7d7 23LL | Baz();
0731742a 24 | ^^^
f035d41b 25help: consider importing this function instead
b7449926
XL
26 |
27LL | use foo2::Bar;
28 |
b7449926
XL
29
30error[E0573]: expected type, found function `Bar`
60c5eb7d 31 --> $DIR/privacy-ns2.rs:43:14
e74abb32
XL
32 |
33LL | let _x : Bar();
34 | ^^^^^ not a type
35 |
36help: use `=` if you meant to assign
37 |
38LL | let _x = Bar();
39 | ^
f035d41b 40help: consider importing this trait instead
e74abb32
XL
41 |
42LL | use foo1::Bar;
b7449926 43 |
e74abb32 44
b7449926 45error[E0603]: trait `Bar` is private
60c5eb7d 46 --> $DIR/privacy-ns2.rs:63:15
b7449926 47 |
532ac7d7 48LL | use foo3::Bar;
ba9703b0 49 | ^^^ private trait
dfeec247
XL
50 |
51note: the trait `Bar` is defined here
52 --> $DIR/privacy-ns2.rs:55:5
53 |
54LL | trait Bar {
55 | ^^^^^^^^^
b7449926
XL
56
57error[E0603]: trait `Bar` is private
60c5eb7d 58 --> $DIR/privacy-ns2.rs:67:15
b7449926 59 |
532ac7d7 60LL | use foo3::Bar;
ba9703b0 61 | ^^^ private trait
dfeec247
XL
62 |
63note: the trait `Bar` is defined here
64 --> $DIR/privacy-ns2.rs:55:5
65 |
66LL | trait Bar {
67 | ^^^^^^^^^
b7449926
XL
68
69error[E0603]: trait `Bar` is private
60c5eb7d 70 --> $DIR/privacy-ns2.rs:74:16
b7449926 71 |
532ac7d7 72LL | use foo3::{Bar,Baz};
ba9703b0 73 | ^^^ private trait
dfeec247
XL
74 |
75note: the trait `Bar` is defined here
76 --> $DIR/privacy-ns2.rs:55:5
77 |
78LL | trait Bar {
79 | ^^^^^^^^^
b7449926 80
60c5eb7d
XL
81error[E0107]: wrong number of const arguments: expected 0, found 1
82 --> $DIR/privacy-ns2.rs:41:18
83 |
84LL | let _x : Box<Bar>;
85 | ^^^ unexpected const argument
86
29967ef6 87error[E0107]: wrong number of type arguments: expected at least 1, found 0
60c5eb7d
XL
88 --> $DIR/privacy-ns2.rs:41:14
89 |
90LL | let _x : Box<Bar>;
29967ef6 91 | ^^^^^^^^ expected at least 1 type argument
60c5eb7d
XL
92
93error[E0107]: wrong number of const arguments: expected 0, found 1
94 --> $DIR/privacy-ns2.rs:49:17
95 |
96LL | let _x: Box<Bar>;
97 | ^^^ unexpected const argument
98
29967ef6 99error[E0107]: wrong number of type arguments: expected at least 1, found 0
60c5eb7d
XL
100 --> $DIR/privacy-ns2.rs:49:13
101 |
102LL | let _x: Box<Bar>;
29967ef6 103 | ^^^^^^^^ expected at least 1 type argument
60c5eb7d
XL
104
105error: aborting due to 10 previous errors
b7449926 106
60c5eb7d
XL
107Some errors have detailed explanations: E0107, E0423, E0573, E0603.
108For more information about an error, try `rustc --explain E0107`.