about summary refs log tree commit diff
path: root/tests/ui/inline-const/const-expr-generic-err2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/inline-const/const-expr-generic-err2.stderr')
-rw-r--r--tests/ui/inline-const/const-expr-generic-err2.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/inline-const/const-expr-generic-err2.stderr b/tests/ui/inline-const/const-expr-generic-err2.stderr
new file mode 100644
index 00000000000..00b716cd259
--- /dev/null
+++ b/tests/ui/inline-const/const-expr-generic-err2.stderr
@@ -0,0 +1,10 @@
+error: constant expression depends on a generic parameter
+  --> $DIR/const-expr-generic-err2.rs:4:19
+   |
+LL |     let _ = [0u8; const { std::mem::size_of::<T>() }];
+   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |
+   = note: this may fail depending on what value the parameter takes
+
+error: aborting due to previous error
+