]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/check-static-values-constraints.stderr
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / check-static-values-constraints.stderr
index b13700a4ea5ba9fedaee2a266d22dc47b392e564..49056678448e70dd939e0993f2adee73fb4a048c 100644 (file)
@@ -22,6 +22,7 @@ LL |     field2: SafeEnum::Variant4("str".to_string())
    |                                      ^^^^^^^^^^^
    |
    = note: calls in statics are limited to constant functions, tuple structs and tuple variants
+   = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
    = note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
 
 error[E0010]: allocations are not allowed in statics