File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- //@ known-bug: #103507
1+ //! This is a regression test for <https://github.com/rust-lang/rust/issues/103507>.
2+ //@ known-bug: #110395
23
34#![ feature( type_alias_impl_trait) ]
45#![ feature( const_trait_impl, const_destruct) ]
Original file line number Diff line number Diff line change 11error: `~const` can only be applied to `#[const_trait]` traits
2- --> $DIR/normalize-tait-in-const.rs:26 :35
2+ --> $DIR/normalize-tait-in-const.rs:27 :35
33 |
44LL | const fn with_positive<F: for<'a> ~const Fn(&'a Alias<'a>) + ~const Destruct>(fun: F) {
55 | ^^^^^^ can't be applied to `Fn`
@@ -8,7 +8,7 @@ note: `Fn` can't be used with `~const` because it isn't annotated with `#[const_
88 --> $SRC_DIR/core/src/ops/function.rs:LL:COL
99
1010error: `~const` can only be applied to `#[const_trait]` traits
11- --> $DIR/normalize-tait-in-const.rs:26 :35
11+ --> $DIR/normalize-tait-in-const.rs:27 :35
1212 |
1313LL | const fn with_positive<F: for<'a> ~const Fn(&'a Alias<'a>) + ~const Destruct>(fun: F) {
1414 | ^^^^^^ can't be applied to `Fn`
@@ -18,7 +18,7 @@ note: `Fn` can't be used with `~const` because it isn't annotated with `#[const_
1818 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
1919
2020error[E0015]: cannot call non-const closure in constant functions
21- --> $DIR/normalize-tait-in-const.rs:27 :5
21+ --> $DIR/normalize-tait-in-const.rs:28 :5
2222 |
2323LL | fun(filter_positive());
2424 | ^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments