diff options
Diffstat (limited to 'tests/ui/marker_trait_attr/override-item-on-marker-trait.stderr')
-rw-r--r-- | tests/ui/marker_trait_attr/override-item-on-marker-trait.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/marker_trait_attr/override-item-on-marker-trait.stderr b/tests/ui/marker_trait_attr/override-item-on-marker-trait.stderr new file mode 100644 index 000000000..1d30c6d56 --- /dev/null +++ b/tests/ui/marker_trait_attr/override-item-on-marker-trait.stderr @@ -0,0 +1,15 @@ +error[E0715]: impls for marker traits cannot contain items + --> $DIR/override-item-on-marker-trait.rs:10:1 + | +LL | impl Marker for OverrideConst { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error[E0715]: impls for marker traits cannot contain items + --> $DIR/override-item-on-marker-trait.rs:16:1 + | +LL | impl Marker for OverrideFn { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0715`. |