2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:51:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct A(());
|
2019-10-11 19:00:15 +00:00
|
|
|
| -- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a = a::A(());
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `A` is defined here
|
|
|
|
--> $DIR/privacy5.rs:6:5
|
|
|
|
|
|
|
|
|
LL | pub struct A(());
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct A(pub ());
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:52:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let b = a::B(2);
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/privacy5.rs:7:5
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct B(pub isize);
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:53:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let c = a::C(2, 3);
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/privacy5.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the fields publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, pub isize);
|
|
|
|
| ~~~ +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:56:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct A(());
|
2019-10-11 19:00:15 +00:00
|
|
|
| -- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a::A(()) = a;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `A` is defined here
|
|
|
|
--> $DIR/privacy5.rs:6:5
|
|
|
|
|
|
|
|
|
LL | pub struct A(());
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct A(pub ());
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:57:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct A(());
|
2019-10-11 19:00:15 +00:00
|
|
|
| -- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a::A(_) = a;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `A` is defined here
|
|
|
|
--> $DIR/privacy5.rs:6:5
|
|
|
|
|
|
|
|
|
LL | pub struct A(());
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct A(pub ());
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:58:18
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct A(());
|
2019-10-11 19:00:15 +00:00
|
|
|
| -- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match a { a::A(()) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `A` is defined here
|
|
|
|
--> $DIR/privacy5.rs:6:5
|
|
|
|
|
|
|
|
|
LL | pub struct A(());
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct A(pub ());
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:59:18
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct A(());
|
2019-10-11 19:00:15 +00:00
|
|
|
| -- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match a { a::A(_) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `A` is defined here
|
|
|
|
--> $DIR/privacy5.rs:6:5
|
|
|
|
|
|
|
|
|
LL | pub struct A(());
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct A(pub ());
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:61:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a::B(_) = b;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/privacy5.rs:7:5
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct B(pub isize);
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:62:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a::B(_b) = b;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/privacy5.rs:7:5
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct B(pub isize);
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:63:18
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match b { a::B(_) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/privacy5.rs:7:5
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct B(pub isize);
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:64:18
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match b { a::B(_b) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/privacy5.rs:7:5
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct B(pub isize);
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:65:18
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match b { a::B(1) => {} a::B(_) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/privacy5.rs:7:5
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct B(pub isize);
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:65:32
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match b { a::B(1) => {} a::B(_) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/privacy5.rs:7:5
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct B(pub isize);
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:68:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a::C(_, _) = c;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/privacy5.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the fields publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, pub isize);
|
|
|
|
| ~~~ +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:69:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a::C(_a, _) = c;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/privacy5.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the fields publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, pub isize);
|
|
|
|
| ~~~ +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:70:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a::C(_, _b) = c;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/privacy5.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the fields publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, pub isize);
|
|
|
|
| ~~~ +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:71:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a::C(_a, _b) = c;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/privacy5.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the fields publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, pub isize);
|
|
|
|
| ~~~ +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:72:18
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match c { a::C(_, _) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/privacy5.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the fields publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, pub isize);
|
|
|
|
| ~~~ +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:73:18
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match c { a::C(_a, _) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/privacy5.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the fields publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, pub isize);
|
|
|
|
| ~~~ +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:74:18
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match c { a::C(_, _b) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/privacy5.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the fields publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, pub isize);
|
|
|
|
| ~~~ +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:75:18
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match c { a::C(_a, _b) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/privacy5.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the fields publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, pub isize);
|
|
|
|
| ~~~ +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:83:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct A(());
|
2019-10-11 19:00:15 +00:00
|
|
|
| -- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a2 = a::A;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `A` is defined here
|
|
|
|
--> $DIR/privacy5.rs:6:5
|
|
|
|
|
|
|
|
|
LL | pub struct A(());
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct A(pub ());
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:84:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let b2 = a::B;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/privacy5.rs:7:5
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct B(pub isize);
|
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:85:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2019-10-09 14:37:48 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let c2 = a::C;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/privacy5.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-01-10 20:57:02 +00:00
|
|
|
help: consider making the fields publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, pub isize);
|
|
|
|
| ~~~ +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:90:20
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a = other::A(());
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct A(());
|
2019-10-11 19:00:15 +00:00
|
|
|
| -- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `A` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
|
|
|
|
|
|
|
|
|
LL | pub struct A(());
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:91:20
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let b = other::B(2);
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:92:20
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let c = other::C(2, 3);
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:95:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let other::A(()) = a;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct A(());
|
2019-10-11 19:00:15 +00:00
|
|
|
| -- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `A` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
|
|
|
|
|
|
|
|
|
LL | pub struct A(());
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:96:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let other::A(_) = a;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct A(());
|
2019-10-11 19:00:15 +00:00
|
|
|
| -- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `A` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
|
|
|
|
|
|
|
|
|
LL | pub struct A(());
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:97:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match a { other::A(()) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct A(());
|
2019-10-11 19:00:15 +00:00
|
|
|
| -- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `A` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
|
|
|
|
|
|
|
|
|
LL | pub struct A(());
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:98:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match a { other::A(_) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct A(());
|
2019-10-11 19:00:15 +00:00
|
|
|
| -- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `A` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
|
|
|
|
|
|
|
|
|
LL | pub struct A(());
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:100:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let other::B(_) = b;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:101:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let other::B(_b) = b;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:102:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match b { other::B(_) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:103:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match b { other::B(_b) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:104:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
LL | match b { other::B(1) => {}
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
|
|
|
--> $DIR/privacy5.rs:105:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
LL | other::B(_) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:107:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let other::C(_, _) = c;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:108:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let other::C(_a, _) = c;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:109:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let other::C(_, _b) = c;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:110:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let other::C(_a, _b) = c;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:111:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match c { other::C(_, _) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:112:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match c { other::C(_a, _) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:113:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match c { other::C(_, _b) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:114:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | match c { other::C(_a, _b) => {} }
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:122:21
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a2 = other::A;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct A(());
|
2019-10-11 19:00:15 +00:00
|
|
|
| -- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `A` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
|
|
|
|
|
|
|
|
|
LL | pub struct A(());
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `B` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:123:21
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let b2 = other::B;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct B(isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ----- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `B` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
|
|
|
|
|
|
|
|
|
LL | pub struct B(isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-11 14:38:20 +00:00
|
|
|
error[E0603]: tuple struct constructor `C` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/privacy5.rs:124:21
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let c2 = other::C;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private tuple struct constructor
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
|
2019-08-09 19:52:02 +00:00
|
|
|
|
|
2019-10-09 14:37:48 +00:00
|
|
|
LL | pub struct C(pub isize, isize);
|
2019-10-11 19:00:15 +00:00
|
|
|
| ---------------- a constructor is private if any of the fields is private
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the tuple struct constructor `C` is defined here
|
|
|
|
--> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
|
|
|
|
|
|
|
|
|
LL | pub struct C(pub isize, isize);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 48 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0603`.
|