summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-3668.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-3668.stderr')
-rw-r--r--tests/ui/issues/issue-3668.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-3668.stderr b/tests/ui/issues/issue-3668.stderr
new file mode 100644
index 000000000..edc49979c
--- /dev/null
+++ b/tests/ui/issues/issue-3668.stderr
@@ -0,0 +1,11 @@
+error[E0435]: attempt to use a non-constant value in a constant
+ --> $DIR/issue-3668.rs:8:34
+ |
+LL | static childVal: Box<P> = self.child.get();
+ | --------------- ^^^^ non-constant value
+ | |
+ | help: consider using `let` instead of `static`: `let childVal`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0435`.