You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
slightly modified version of an exemple from std 1.49. This code should error out in all cases as both cfg directives are contradictory, so at least one field should be nonexistent in the instantiation. rustc outputs the following with no particular cfg command line options:
error[E0560]:struct `ReadDir` has no field named `end_of_stream_but_different`
--> test.rs:13:9
|
13 | end_of_stream_but_different: false,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ReadDir` does not have this field
|
= note: all struct fields are already assigned
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0560`.
but gccrs compiles the file happily
The text was updated successfully, but these errors were encountered:
slightly modified version of an exemple from
std
1.49. This code should error out in all cases as bothcfg
directives are contradictory, so at least one field should be nonexistent in the instantiation.rustc
outputs the following with no particular cfg command line options:but
gccrs
compiles the file happilyThe text was updated successfully, but these errors were encountered: