diff options
Diffstat (limited to 'src/test/ui/repr/repr-disallow-on-variant.stderr')
-rw-r--r-- | src/test/ui/repr/repr-disallow-on-variant.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/repr/repr-disallow-on-variant.stderr b/src/test/ui/repr/repr-disallow-on-variant.stderr new file mode 100644 index 000000000..f7e4dcc9d --- /dev/null +++ b/src/test/ui/repr/repr-disallow-on-variant.stderr @@ -0,0 +1,12 @@ +error[E0517]: attribute should be applied to an enum + --> $DIR/repr-disallow-on-variant.rs:4:12 + | +LL | #[repr(u8)] + | ^^ +LL | +LL | Variant, + | ------- not an enum + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0517`. |