diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2024-10-26 11:35:16 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2024-10-26 11:35:56 +0800 |
| commit | f2f67232a53b79b44c5b87fe5757ef1f18f4b590 (patch) | |
| tree | 2cac077576ff2ecdd0e4379c06e3190aaa6d35ed /tests/ui/impl-trait/normalize-tait-in-const.stderr | |
| parent | 54761cb3e819eb5ae94774fd292f9e58372b1a0c (diff) | |
| download | rust-f2f67232a53b79b44c5b87fe5757ef1f18f4b590.tar.gz rust-f2f67232a53b79b44c5b87fe5757ef1f18f4b590.zip | |
Deny calls to non-`#[const_trait]` methods in MIR constck
Diffstat (limited to 'tests/ui/impl-trait/normalize-tait-in-const.stderr')
| -rw-r--r-- | tests/ui/impl-trait/normalize-tait-in-const.stderr | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/ui/impl-trait/normalize-tait-in-const.stderr b/tests/ui/impl-trait/normalize-tait-in-const.stderr index f1e6207ed81..b370a5d7eb1 100644 --- a/tests/ui/impl-trait/normalize-tait-in-const.stderr +++ b/tests/ui/impl-trait/normalize-tait-in-const.stderr @@ -37,10 +37,6 @@ help: consider further restricting this bound | LL | const fn with_positive<F: for<'a> ~const Fn(&'a Alias<'a>) + ~const Destruct + ~const Fn(&foo::Alias<'_>)>(fun: F) { | ++++++++++++++++++++++++++++ -help: add `#![feature(effects)]` to the crate attributes to enable - | -LL + #![feature(effects)] - | error[E0493]: destructor of `F` cannot be evaluated at compile-time --> $DIR/normalize-tait-in-const.rs:26:79 |
