diff options
Diffstat (limited to 'tests/ui/rfc-2632-const-trait-impl/call-generic-in-impl.stderr')
-rw-r--r-- | tests/ui/rfc-2632-const-trait-impl/call-generic-in-impl.stderr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/rfc-2632-const-trait-impl/call-generic-in-impl.stderr b/tests/ui/rfc-2632-const-trait-impl/call-generic-in-impl.stderr new file mode 100644 index 000000000..02d53cc78 --- /dev/null +++ b/tests/ui/rfc-2632-const-trait-impl/call-generic-in-impl.stderr @@ -0,0 +1,8 @@ +error: ~const can only be applied to `#[const_trait]` traits + --> $DIR/call-generic-in-impl.rs:9:16 + | +LL | impl<T: ~const PartialEq> const MyPartialEq for T { + | ^^^^^^^^^ + +error: aborting due to previous error + |