fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0603]: tuple variant `Tuple` is private 2 --> $DIR/variant.rs:11:48 3 | 4LL | let variant_tuple = NonExhaustiveVariants::Tuple(640); 5 | ^^^^^ private tuple variant 6 | 7note: the tuple variant `Tuple` is defined here 8 --> $DIR/auxiliary/variants.rs:5:23 9 | 10LL | #[non_exhaustive] Tuple(u32), 11 | ----------------- ^^^^^ 12 | | 13 | cannot be constructed because it is `#[non_exhaustive]` 14 15error[E0603]: unit variant `Unit` is private 16 --> $DIR/variant.rs:14:47 17 | 18LL | let variant_unit = NonExhaustiveVariants::Unit; 19 | ^^^^ private unit variant 20 | 21note: the unit variant `Unit` is defined here 22 --> $DIR/auxiliary/variants.rs:4:23 23 | 24LL | #[non_exhaustive] Unit, 25 | ----------------- ^^^^ 26 | | 27 | cannot be constructed because it is `#[non_exhaustive]` 28 29error[E0603]: unit variant `Unit` is private 30 --> $DIR/variant.rs:18:32 31 | 32LL | NonExhaustiveVariants::Unit => "", 33 | ^^^^ private unit variant 34 | 35note: the unit variant `Unit` is defined here 36 --> $DIR/auxiliary/variants.rs:4:23 37 | 38LL | #[non_exhaustive] Unit, 39 | ----------------- ^^^^ 40 | | 41 | cannot be constructed because it is `#[non_exhaustive]` 42 43error[E0603]: tuple variant `Tuple` is private 44 --> $DIR/variant.rs:20:32 45 | 46LL | NonExhaustiveVariants::Tuple(fe_tpl) => "", 47 | ^^^^^ private tuple variant 48 | 49note: the tuple variant `Tuple` is defined here 50 --> $DIR/auxiliary/variants.rs:5:23 51 | 52LL | #[non_exhaustive] Tuple(u32), 53 | ----------------- ^^^^^ 54 | | 55 | cannot be constructed because it is `#[non_exhaustive]` 56 57error[E0603]: tuple variant `Tuple` is private 58 --> $DIR/variant.rs:26:35 59 | 60LL | if let NonExhaustiveVariants::Tuple(fe_tpl) = variant_struct { 61 | ^^^^^ private tuple variant 62 | 63note: the tuple variant `Tuple` is defined here 64 --> $DIR/auxiliary/variants.rs:5:23 65 | 66LL | #[non_exhaustive] Tuple(u32), 67 | ----------------- ^^^^^ 68 | | 69 | cannot be constructed because it is `#[non_exhaustive]` 70 71error[E0639]: cannot create non-exhaustive variant using struct expression 72 --> $DIR/variant.rs:8:26 73 | 74LL | let variant_struct = NonExhaustiveVariants::Struct { field: 640 }; 75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 76 77error[E0638]: `..` required with variant marked as non-exhaustive 78 --> $DIR/variant.rs:22:9 79 | 80LL | NonExhaustiveVariants::Struct { field } => "" 81 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 82 | 83help: add `..` at the end of the field list to ignore all other fields 84 | 85LL | NonExhaustiveVariants::Struct { field , .. } => "" 86 | ~~~~~~ 87 88error[E0638]: `..` required with variant marked as non-exhaustive 89 --> $DIR/variant.rs:30:12 90 | 91LL | if let NonExhaustiveVariants::Struct { field } = variant_struct { 92 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 93 | 94help: add `..` at the end of the field list to ignore all other fields 95 | 96LL | if let NonExhaustiveVariants::Struct { field , .. } = variant_struct { 97 | ~~~~~~ 98 99error: aborting due to 8 previous errors 100 101Some errors have detailed explanations: E0603, E0638, E0639. 102For more information about an error, try `rustc --explain E0603`.