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

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

68 lines
1.6 KiB
Plaintext
Raw Normal View History

error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
2018-12-25 09:56:47 -06:00
--> $DIR/privacy-ns1.rs:20:5
2018-08-08 07:28:26 -05:00
|
LL | pub struct Baz;
| --------------- similarly named unit struct `Baz` defined here
...
2019-03-09 06:03:44 -06:00
LL | Bar();
| ^^^
|
help: a unit struct with a similar name exists
|
2019-03-09 06:03:44 -06:00
LL | Baz();
| ~~~
help: consider importing this function instead
2018-08-08 07:28:26 -05:00
|
LL | use foo2::Bar;
|
error[E0425]: cannot find function, tuple struct or tuple variant `Bar` in this scope
--> $DIR/privacy-ns1.rs:51:5
2018-08-08 07:28:26 -05:00
|
LL | pub struct Baz;
| --------------- similarly named unit struct `Baz` defined here
...
2019-03-09 06:03:44 -06:00
LL | Bar();
| ^^^
|
help: a unit struct with a similar name exists
|
2019-03-09 06:03:44 -06:00
LL | Baz();
| ~~~
help: consider importing this function
2018-08-08 07:28:26 -05:00
|
LL | use foo2::Bar;
|
error[E0412]: cannot find type `Bar` in this scope
--> $DIR/privacy-ns1.rs:52:17
2018-08-08 07:28:26 -05:00
|
LL | pub struct Baz;
| --------------- similarly named struct `Baz` defined here
...
2019-03-09 06:03:44 -06:00
LL | let _x: Box<Bar>;
| ^^^
|
help: a struct with a similar name exists
|
2019-03-09 06:03:44 -06:00
LL | let _x: Box<Baz>;
| ~~~
help: consider importing this trait
2018-08-08 07:28:26 -05:00
|
LL | use foo1::Bar;
|
error[E0747]: constant provided when a type was expected
--> $DIR/privacy-ns1.rs:35: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 4 previous errors
2018-08-08 07:28:26 -05:00
Some errors have detailed explanations: E0412, E0423, E0425, E0747.
For more information about an error, try `rustc --explain E0412`.