summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/raw-ptr-const.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/raw-ptr-const.stderr')
-rw-r--r--tests/ui/consts/raw-ptr-const.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/consts/raw-ptr-const.stderr b/tests/ui/consts/raw-ptr-const.stderr
new file mode 100644
index 000000000..f7b53433b
--- /dev/null
+++ b/tests/ui/consts/raw-ptr-const.stderr
@@ -0,0 +1,8 @@
+error: untyped pointers are not allowed in constant
+ --> $DIR/raw-ptr-const.rs:5:1
+ |
+LL | const CONST_RAW: *const Vec<i32> = &Vec::new() as *const _;
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+