X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fparser%2Ftag-variant-disr-non-nullary.stderr;h=7088352f8033ae2e04d0e003543aae0895271cbc;hb=3ead6de40d57ec78275ee398592baa814b5f0841;hp=aa45ea4ac26e90dbdfee007a582c745f99a47712;hpb=7feb802d8982fe69d7d6acef532a87ada8aae9fb;p=rust.git diff --git a/src/test/ui/parser/tag-variant-disr-non-nullary.stderr b/src/test/ui/parser/tag-variant-disr-non-nullary.stderr index aa45ea4ac26..7088352f803 100644 --- a/src/test/ui/parser/tag-variant-disr-non-nullary.stderr +++ b/src/test/ui/parser/tag-variant-disr-non-nullary.stderr @@ -1,8 +1,28 @@ error: discriminator values can only be used with a field-less enum - --> $DIR/tag-variant-disr-non-nullary.rs:8:13 + --> $DIR/tag-variant-disr-non-nullary.rs:3:11 | -LL | white = 0xffffff, - | ^^^^^^^^ +LL | Red = 0xff0000, + | ^^^^^^^^ only valid in field-less enums +LL | //~^ ERROR discriminator values can only be used with a field-less enum +LL | Green = 0x00ff00, + | ^^^^^^^^ only valid in field-less enums +LL | Blue = 0x0000ff, + | ^^^^^^^^ only valid in field-less enums +LL | Black = 0x000000, + | ^^^^^^^^ only valid in field-less enums +LL | White = 0xffffff, + | ^^^^^^^^ only valid in field-less enums -error: aborting due to previous error +error[E0277]: the size for values of type `str` cannot be known at compilation time + --> $DIR/tag-variant-disr-non-nullary.rs:9:12 + | +LL | Other (str), + | ^^^ doesn't have a size known at compile-time + | + = help: the trait `std::marker::Sized` is not implemented for `str` + = note: to learn more, visit + = note: no field of an enum variant may have a dynamically sized type + +error: aborting due to 2 previous errors +For more information about this error, try `rustc --explain E0277`.