2018-01-15 07:18:06 -06:00
|
|
|
error[E0423]: expected value, found enum `n::Z`
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:33:9
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | n::Z;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: did you mean to use one of the following variants?
|
|
|
|
- `m::Z::Fn`
|
|
|
|
- `m::Z::Struct`
|
|
|
|
- `m::Z::Unit`
|
|
|
|
|
|
|
|
error[E0423]: expected value, found enum `Z`
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:35:9
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Z;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^ did you mean `f`?
|
|
|
|
|
|
|
|
|
= note: did you mean to use one of the following variants?
|
|
|
|
- `m::Z::Fn`
|
|
|
|
- `m::Z::Struct`
|
|
|
|
- `m::Z::Unit`
|
|
|
|
|
|
|
|
error[E0423]: expected value, found struct variant `Z::Struct`
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:39:20
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: Z = Z::Struct;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^^^ did you mean `Z::Struct { /* fields */ }`?
|
|
|
|
|
|
|
|
error[E0423]: expected value, found enum `m::E`
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:51:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: E = m::E;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^-
|
|
|
|
| |
|
|
|
|
| did you mean `f`?
|
|
|
|
|
|
|
|
|
= note: did you mean to use one of the following variants?
|
|
|
|
- `E::Fn`
|
|
|
|
- `E::Struct`
|
|
|
|
- `E::Unit`
|
|
|
|
help: possible better candidates are found in other modules, you can import them into scope
|
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use std::f32::consts::E;
|
2018-01-15 07:18:06 -06:00
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use std::f64::consts::E;
|
2018-01-15 07:18:06 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
error[E0423]: expected value, found struct variant `m::E::Struct`
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:55:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: E = m::E::Struct;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^^^^^^ did you mean `m::E::Struct { /* fields */ }`?
|
|
|
|
|
|
|
|
error[E0423]: expected value, found enum `E`
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:59:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: E = E;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: did you mean to use one of the following variants?
|
|
|
|
- `E::Fn`
|
|
|
|
- `E::Struct`
|
|
|
|
- `E::Unit`
|
|
|
|
help: possible better candidates are found in other modules, you can import them into scope
|
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use std::f32::consts::E;
|
2018-01-15 07:18:06 -06:00
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use std::f64::consts::E;
|
2018-01-15 07:18:06 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
error[E0423]: expected value, found struct variant `E::Struct`
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:63:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: E = E::Struct;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^^^ did you mean `E::Struct { /* fields */ }`?
|
|
|
|
|
|
|
|
error[E0412]: cannot find type `Z` in this scope
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:67:12
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: Z = m::n::Z;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^ did you mean `E`?
|
|
|
|
help: possible candidate is found in another module, you can import it into scope
|
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use m::n::Z;
|
2018-01-15 07:18:06 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
error[E0423]: expected value, found enum `m::n::Z`
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:67:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: Z = m::n::Z;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: did you mean to use one of the following variants?
|
|
|
|
- `m::Z::Fn`
|
|
|
|
- `m::Z::Struct`
|
|
|
|
- `m::Z::Unit`
|
|
|
|
|
|
|
|
error[E0412]: cannot find type `Z` in this scope
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:71:12
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: Z = m::n::Z::Fn;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^ did you mean `E`?
|
|
|
|
help: possible candidate is found in another module, you can import it into scope
|
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use m::n::Z;
|
2018-01-15 07:18:06 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
error[E0412]: cannot find type `Z` in this scope
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:74:12
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: Z = m::n::Z::Struct;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^ did you mean `E`?
|
|
|
|
help: possible candidate is found in another module, you can import it into scope
|
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use m::n::Z;
|
2018-01-15 07:18:06 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
error[E0423]: expected value, found struct variant `m::n::Z::Struct`
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:74:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: Z = m::n::Z::Struct;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ did you mean `m::n::Z::Struct { /* fields */ }`?
|
|
|
|
|
|
|
|
error[E0412]: cannot find type `Z` in this scope
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:78:12
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: Z = m::n::Z::Unit {};
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^ did you mean `E`?
|
|
|
|
help: possible candidate is found in another module, you can import it into scope
|
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use m::n::Z;
|
2018-01-15 07:18:06 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
error[E0603]: enum `Z` is private
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:67:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: Z = m::n::Z;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error[E0603]: enum `Z` is private
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:71:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: Z = m::n::Z::Fn;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0603]: enum `Z` is private
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:74:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: Z = m::n::Z::Struct;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0603]: enum `Z` is private
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:78:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: Z = m::n::Z::Unit {};
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:37:20
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: Z = Z::Fn;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^ expected enum `m::n::Z`, found fn item
|
|
|
|
|
|
|
|
|
= note: expected type `m::n::Z`
|
|
|
|
found type `fn(u8) -> m::n::Z {m::n::Z::Fn}`
|
|
|
|
|
|
|
|
error[E0618]: expected function, found enum variant `Z::Unit`
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:41:17
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Unit,
|
2018-01-15 07:18:06 -06:00
|
|
|
| ---- `Z::Unit` defined here
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _ = Z::Unit();
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^^^ not a function
|
|
|
|
help: `Z::Unit` is a unit variant, you need to write it without the parenthesis
|
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | let _ = Z::Unit;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:53:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: E = m::E::Fn;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^^ expected enum `m::E`, found fn item
|
|
|
|
|
|
|
|
|
= note: expected type `m::E`
|
|
|
|
found type `fn(u8) -> m::E {m::E::Fn}`
|
|
|
|
|
|
|
|
error[E0618]: expected function, found enum variant `m::E::Unit`
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:57:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Unit,
|
2018-01-15 07:18:06 -06:00
|
|
|
| ---- `m::E::Unit` defined here
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: E = m::E::Unit();
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^^^^^^ not a function
|
|
|
|
help: `m::E::Unit` is a unit variant, you need to write it without the parenthesis
|
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | let _: E = m::E::Unit;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:61:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: E = E::Fn;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^ expected enum `m::E`, found fn item
|
|
|
|
|
|
|
|
|
= note: expected type `m::E`
|
|
|
|
found type `fn(u8) -> m::E {m::E::Fn}`
|
|
|
|
|
|
|
|
error[E0618]: expected function, found enum variant `E::Unit`
|
|
|
|
--> $DIR/privacy-enum-ctor.rs:65:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Unit,
|
2018-01-15 07:18:06 -06:00
|
|
|
| ---- `E::Unit` defined here
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: E = E::Unit();
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^^^ not a function
|
|
|
|
help: `E::Unit` is a unit variant, you need to write it without the parenthesis
|
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | let _: E = E::Unit;
|
2018-01-15 07:18:06 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 23 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
You've got a few errors: E0308, E0412, E0423, E0603, E0618
|
|
|
|
If you want more information on an error, try using "rustc --explain E0308"
|