Skip to content

Commit 0922c19

Browse files
committed
fix known-bug link in normalize-tait-in-const
1 parent 620fead commit 0922c19

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/ui/impl-trait/normalize-tait-in-const.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
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)]

tests/ui/impl-trait/normalize-tait-in-const.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: `~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
|
44
LL | 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

1010
error: `~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
|
1313
LL | 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

2020
error[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
|
2323
LL | fun(filter_positive());
2424
| ^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)