Skip to content

Commit 620fead

Browse files
committed
remove some known-bug that do not seem to make sense
1 parent 93ba568 commit 620fead

4 files changed

+5
-11
lines changed

tests/ui/consts/const-block-const-bound.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//@ known-bug: #103507
2-
31
#![allow(unused)]
42
#![feature(const_trait_impl, negative_impls, const_destruct)]
53

@@ -16,6 +14,6 @@ impl Drop for UnconstDrop {
1614
fn main() {
1715
const {
1816
f(UnconstDrop);
19-
//FIXME ~^ ERROR can't drop
17+
//~^ ERROR trait bound `UnconstDrop: const Destruct` is not satisfied
2018
}
2119
}

tests/ui/consts/const-block-const-bound.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error[E0277]: the trait bound `UnconstDrop: const Destruct` is not satisfied
2-
--> $DIR/const-block-const-bound.rs:18:11
2+
--> $DIR/const-block-const-bound.rs:16:11
33
|
44
LL | f(UnconstDrop);
55
| - ^^^^^^^^^^^
66
| |
77
| required by a bound introduced by this call
88
|
99
note: required by a bound in `f`
10-
--> $DIR/const-block-const-bound.rs:8:15
10+
--> $DIR/const-block-const-bound.rs:6:15
1111
|
1212
LL | const fn f<T: ~const Destruct>(x: T) {}
1313
| ^^^^^^ required by this bound in `f`

tests/ui/consts/issue-94675.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//@ known-bug: #103507
2-
31
#![feature(const_trait_impl, const_vec_string_slice)]
42

53
struct Foo<'a> {
@@ -9,9 +7,7 @@ struct Foo<'a> {
97
impl<'a> Foo<'a> {
108
const fn spam(&mut self, baz: &mut Vec<u32>) {
119
self.bar[0] = baz.len();
12-
//FIXME ~^ ERROR: cannot call
13-
//FIXME ~| ERROR: cannot call
14-
//FIXME ~| ERROR: the trait bound
10+
//~^ ERROR: cannot call
1511
}
1612
}
1713

tests/ui/consts/issue-94675.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0015]: cannot call non-const operator in constant functions
2-
--> $DIR/issue-94675.rs:11:17
2+
--> $DIR/issue-94675.rs:9:17
33
|
44
LL | self.bar[0] = baz.len();
55
| ^^^

0 commit comments

Comments
 (0)