]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-non-const-type.stderr
Rollup merge of #106767 - chbaker0:disable-unstable-features, r=Mark-Simulacrum
[rust.git] / tests / ui / rfc-2632-const-trait-impl / const_derives / derive-const-non-const-type.stderr
index d463c774e289efbf876ea902009d996c528207e8..96e0c78b9c7da1afe88156c033dfb8ed9436559b 100644 (file)
@@ -7,6 +7,7 @@ LL | pub struct S(A);
    |              ^
    |
    = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
+   = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
    = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error: aborting due to previous error