]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/issue-64453.stderr
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / borrowck / issue-64453.stderr
index 1f8a1acb89f50a8c3afdfc12fcfea516a6b0e5d3..245c3a40e05062631907c8ea7913337c4a79f0bc 100644 (file)
@@ -14,6 +14,7 @@ LL | static settings_dir: String = format!("");
    |                               ^^^^^^^^^^^
    |
    = note: calls in statics are limited to constant functions, tuple structs and tuple variants
+   = note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
    = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error[E0507]: cannot move out of static item `settings_dir`