diff options
Diffstat (limited to 'tests/ui/structs/tuple-struct-field-naming-47073.stderr')
| -rw-r--r-- | tests/ui/structs/tuple-struct-field-naming-47073.stderr | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/ui/structs/tuple-struct-field-naming-47073.stderr b/tests/ui/structs/tuple-struct-field-naming-47073.stderr new file mode 100644 index 00000000000..efbdaeca4ea --- /dev/null +++ b/tests/ui/structs/tuple-struct-field-naming-47073.stderr @@ -0,0 +1,23 @@ +error[E0609]: no field `00` on type `Verdict` + --> $DIR/tuple-struct-field-naming-47073.rs:9:30 + | +LL | let _condemned = justice.00; + | ^^ unknown field + | +help: a field with a similar name exists + | +LL - let _condemned = justice.00; +LL + let _condemned = justice.0; + | + +error[E0609]: no field `001` on type `Verdict` + --> $DIR/tuple-struct-field-naming-47073.rs:11:31 + | +LL | let _punishment = justice.001; + | ^^^ unknown field + | + = note: available fields are: `0`, `1` + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0609`. |
