rust/tests/ui/privacy/privacy-ns2.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

103 lines
2.4 KiB
Plaintext
Raw Normal View History

error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
2018-12-25 15:56:47 +00:00
--> $DIR/privacy-ns2.rs:20:5
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | Bar();
| ^^^ not a function, tuple struct or tuple variant
|
help: consider importing this function instead
2018-08-08 12:28:26 +00:00
|
LL | use foo2::Bar;
|
error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
2018-12-25 15:56:47 +00:00
--> $DIR/privacy-ns2.rs:26:5
2018-08-08 12:28:26 +00:00
|
LL | pub struct Baz;
| --------------- similarly named unit struct `Baz` defined here
...
2019-03-09 12:03:44 +00:00
LL | Bar();
| ^^^
|
help: a unit struct with a similar name exists
|
2019-03-09 12:03:44 +00:00
LL | Baz();
| ~~~
help: consider importing this function instead
2018-08-08 12:28:26 +00:00
|
LL | use foo2::Bar;
|
error[E0573]: expected type, found function `Bar`
--> $DIR/privacy-ns2.rs:42:14
2019-10-19 17:13:56 +00:00
|
LL | let _x : Bar();
| ^^^^^ not a type
2019-10-26 22:34:28 +00:00
|
2019-10-19 17:13:56 +00:00
help: use `=` if you meant to assign
|
LL | let _x = Bar();
| ~
help: consider importing this trait instead
2019-10-19 17:13:56 +00:00
|
LL | use foo1::Bar;
|
2018-08-08 12:28:26 +00:00
error[E0603]: trait `Bar` is private
--> $DIR/privacy-ns2.rs:61:15
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | use foo3::Bar;
| ^^^ private trait
|
note: the trait `Bar` is defined here
--> $DIR/privacy-ns2.rs:53:5
|
LL | trait Bar {
| ^^^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0603]: trait `Bar` is private
--> $DIR/privacy-ns2.rs:65:15
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | use foo3::Bar;
| ^^^ private trait
|
note: the trait `Bar` is defined here
--> $DIR/privacy-ns2.rs:53:5
|
LL | trait Bar {
| ^^^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0603]: trait `Bar` is private
--> $DIR/privacy-ns2.rs:72:16
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | use foo3::{Bar,Baz};
| ^^^ private trait
|
note: the trait `Bar` is defined here
--> $DIR/privacy-ns2.rs:53:5
|
LL | trait Bar {
| ^^^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0747]: constant provided when a type was expected
--> $DIR/privacy-ns2.rs:41:18
|
LL | let _x : Box<Bar>;
| ^^^
|
= help: `Bar` is a function item, not a type
= help: function item types cannot be named directly
error[E0747]: constant provided when a type was expected
--> $DIR/privacy-ns2.rs:48:17
|
LL | let _x: Box<Bar>;
| ^^^
|
= help: `Bar` is a function item, not a type
= help: function item types cannot be named directly
error: aborting due to 8 previous errors
2018-08-08 12:28:26 +00:00
Some errors have detailed explanations: E0423, E0573, E0603, E0747.
For more information about an error, try `rustc --explain E0423`.