diff options
Diffstat (limited to 'tests/ui/consts/intrinsic_without_const_stab.stderr')
-rw-r--r-- | tests/ui/consts/intrinsic_without_const_stab.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/consts/intrinsic_without_const_stab.stderr b/tests/ui/consts/intrinsic_without_const_stab.stderr new file mode 100644 index 000000000..b32b6398e --- /dev/null +++ b/tests/ui/consts/intrinsic_without_const_stab.stderr @@ -0,0 +1,11 @@ +error[E0015]: cannot call non-const fn `copy::copy::<T>` in constant functions + --> $DIR/intrinsic_without_const_stab.rs:13:14 + | +LL | unsafe { copy(src, dst, count) } + | ^^^^^^^^^^^^^^^^^^^^^ + | + = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0015`. |