about summary refs log tree commit diff
path: root/tests/ui/statics
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2024-10-26 11:35:16 +0800
committerDeadbeef <ent3rm4n@gmail.com>2024-10-26 11:35:56 +0800
commitf2f67232a53b79b44c5b87fe5757ef1f18f4b590 (patch)
tree2cac077576ff2ecdd0e4379c06e3190aaa6d35ed /tests/ui/statics
parent54761cb3e819eb5ae94774fd292f9e58372b1a0c (diff)
downloadrust-f2f67232a53b79b44c5b87fe5757ef1f18f4b590.tar.gz
rust-f2f67232a53b79b44c5b87fe5757ef1f18f4b590.zip
Deny calls to non-`#[const_trait]` methods in MIR constck
Diffstat (limited to 'tests/ui/statics')
-rw-r--r--tests/ui/statics/check-values-constraints.stderr4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/ui/statics/check-values-constraints.stderr b/tests/ui/statics/check-values-constraints.stderr
index 24763c175fc..b4ee34530d3 100644
--- a/tests/ui/statics/check-values-constraints.stderr
+++ b/tests/ui/statics/check-values-constraints.stderr
@@ -37,10 +37,6 @@ LL |     field2: SafeEnum::Variant4("str".to_string()),
    |
    = note: calls in statics are limited to constant functions, tuple structs and tuple variants
    = note: consider wrapping this expression in `std::sync::LazyLock::new(|| ...)`
-help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
-   |
-LL + #![feature(const_trait_impl)]
-   |
 
 error[E0010]: allocations are not allowed in statics
   --> $DIR/check-values-constraints.rs:96:5